Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/lntechnical2/live_count_channelv2


https://github.com/lntechnical2/live_count_channelv2

Last synced: 4 months ago
JSON representation

Lists

README

        

# myvcbot

## HOW TO GET MESSAGE_ID

```pip install requests```

```python
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