Skip to content

Commit

Permalink
правки
Browse files Browse the repository at this point in the history
  • Loading branch information
HamletSargsyan committed Jun 9, 2024
1 parent e0d0796 commit 7356f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/advert.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def show_advert(user: UserModel):
}
json = {"SendToChatId": user.id}

logger.debug(f"Send advert to user `{user.id}`")
response = requests.post(
"https://api.gramads.net/ad/SendPost", headers=headers, json=json
)

logger.debug(f"Send advert to user `{user.id}`")
logger.debug(response.text)

if response.status_code == 200 and response.json()["SendPostResult"] == 1:
Expand Down

0 comments on commit 7356f73

Please sign in to comment.