Skip to content

Instantly share code, notes, and snippets.

@riteshkawadkar
Created April 6, 2022 18:25
Show Gist options
  • Save riteshkawadkar/a91181b656348f476fa898ec2e687f62 to your computer and use it in GitHub Desktop.
Save riteshkawadkar/a91181b656348f476fa898ec2e687f62 to your computer and use it in GitHub Desktop.
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