Skip to content

lntechnical2/live_count_channelv2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myvcbot

HOW TO GET MESSAGE_ID

pip install requests

import requests  as re 
import json
chat_id = "" #chat_id with @  ex{@lntechnical}

token = "" #Bot token

text = 'Telegram Channel Live Subscriber Counting .... 🎉🎉\n\n pls wait for live count'

send_api = f"https://api.telegram.org/bot{token}/sendMessage"
data = {"chat_id":chat_id,
              "text" : text
}

res =re.post(send_api,data).content
value= json.loads(res)
try:
	result = value["result"]
	print(result["message_id"])
except:
	print(res)

Configs

  • TOKEN - bot token
  • MESSAGE_ID - message id
  • CHAT_ID - chat id

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages