Relative Content

Tag Archive for pythontelegram-bot

TelegramBotQ&A AND How to resolve the issues

enter image description hereI am tryna create a telegram bot as part of my personal project. Despite having pip to install python-telegram-bot, there’s still the squiggly lines on my telegram and telegram.ext (Redere to screenshot. What should I do to resolve this issue? i am sad if i dont resolve this issue because code is love, code is life

Telegram bot does not scan all chat users

I want to add to my bot the ability to activate in a chat and have the bot immediately scan all the participants inside. As a result, the code gives an error and is not activated in the chat. Tell me what to do

telegram bot API ‘setMyName’ doesn’t work

Here is my code import requests import json bot_token = ” ” # your bot token token_url = f”https://api.telegram.org/bot{bot_token}/” parameters = { “name”: “sdfjk123”, “language_code”: “en” } headers = { “Content-Type”: “application/json”, } print(token_url+’setMyName’) def set_name(): r = requests.post(token_url+’setMyName’, json=json.dumps(parameters), headers=headers) print(r.json()) set_name() Here is the error message returned by the request {‘ok’: False, ‘error_code’: […]