Created
April 6, 2022 18:25
-
-
Save riteshkawadkar/a91181b656348f476fa898ec2e687f62 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
TELEGRAM_BOT_TOKEN = 'YOUR_TELEGRAM_BOT_TOKEN' | |
chat_id = "YOUR_GROUP_ID" | |
base_url = "https://api.telegram.org/bot" + YOUR_TELEGRAM_BOT_TOKEN | |
b = place_project_bid(session, **bid_data) | |
if b: | |
print('*********************') | |
print(("Bid placed: %s" % b)) | |
parameters = { | |
"chat_id" : chat_id, | |
"text" : message, | |
} | |
resp = requests.get(base_url + "/sendMessage", data = parameters) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment