skip to Main Content

I coded my telegram bot (in python) prompting user to send an image. How do I make sure users only send image and nothing else? – Telegram API

def process_color_step(message): chat_id = message.chat.id product.color = message.text msg = bot.send_message(chat_id, 'ok, send me a photo of your phone') bot.register_next_step_handler(msg,process_image_step) def process_image_step(message): chat_id = message.chat.id product.image = message.photo[1].file_id msg = bot.send_message(chat_id, 'Ok, send me a description of your phone?') bot.register_next_step_handler(msg,process_description_step)…

VIEW QUESTION

URL Blocking Bots – CPanel

I have a client who I am trying to setup an SSL certificate for via SSL for Free, like I have done 100 times before. I created the file structure under public_html: .well-known > pki-validation > <uploaded verification file> I…

VIEW QUESTION

Can chat IDs of telegram bots be changed?

Can we change the chat ID of a telegram bot from Telegram to ID CHAT ? I want to save more chat IDs in my database. To extrapolate it, I use this method: https://api.telegram.org/botXXXXXXXXX:YYYYYYY-YYYYYYYYYYYYYYYYY_YY/getUpdates Besides this, is every chat ID…

VIEW QUESTION
Back To Top
Search