People are spamming on my bot with a command.I want to put a time limit or antispam…for few seconds like if a user message /start then. He/she can use /start after few or my own second time.guys can you help me or give an example because i am new in Python so i want some ..
I wrote a code where the survey is sent to all users, but after clicking one of the answers, the survey is not updated for all users. That is, it is not visible that another participant clicked. How do I make sure that when the answer is clicked, the survey is updated? @bot.message_handler(commands=[‘poll’]) def poll(message): ..
I’m currently developing a Telegram bot using python/Pytelegrambotapi. In my local machine, if the bot is started and left for sometime without any request, It terminates and throws the error requests.exceptions.ReadTimeout: HTTPSConnectionPool(host=’api.telegram.org’, port=443): Read timed out. (read timeout=25) Can someone help me handling this error. Thanks in advance Source: Python..
I would be grateful for your help! Need from js to telegram channel (API) The bottom line is that, after a certain event, a text file is created with the event data. In addition, I would like this data to be sent to the telegram channel. There is this script on the python, but here’s ..
I have a telegram bot for myself that I use to notify myself of scripts running successfully. Sometimes I have to link to a website so I will use the Telegram API to /sendMessage with the body of [Go to Google](https://google.com) (Some extra text). The message is received fine. However, if I send a message ..
I am using telethon to handle a client on a custom app. What I would like to do is show the list of people subscribed to a certain telegram channel. Here is the setup: from telethon import TelegramClient, events, sync api_id = 8045283 api_hash = ‘ad63dec5ee12u8baca534620d5b3d725’ #not real btw client = TelegramClient(‘name’, api_id, api_hash) await ..
First Thank you for your time! I got my API from https://my.telegram.org/apps. I ran a scraper to get telegram details in order to add them to the group which worked perfectly. But when i get to the add to group part I just keep getting PeerFloodError and i cant seem to find a way around ..
The logic is the following: With the /start command the bot shows the Main Menu with buttons (each button represents a file the user wants to get access to); When any button is pressed, the conversation starts where the bot asks for a gmail address; The user sends their gmail address, the bot checks it, ..
I am writing a parser bot that checks a site for a domain name through the whois service. In the terminal the parsing goes fine and the information is displayed, but when need to send this text in the chat, an error is generated (send_message() missing 1 required positional argument: ‘text’) this is just a ..