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
- Host: GitHub
- URL: https://github.com/lntechnical2/live_count_channelv2
- Owner: lntechnical2
- License: mit
- Created: 2021-08-15T05:37:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-31T14:03:45.000Z (almost 3 years ago)
- Last Synced: 2024-01-15T19:07:30.945Z (5 months ago)
- Language: Python
- Homepage:
- Size: 43.9 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - lntechnical2/live_count_channelv2 - (Python)
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