Telegram Api Telethon
through the telethon python library I can send messages via inlinebutton if the session is authorized via bot. If I create a session via phone number I can't send messages with any type of button. Is it possible to do…
through the telethon python library I can send messages via inlinebutton if the session is authorized via bot. If I create a session via phone number I can't send messages with any type of button. Is it possible to do…
I have some troubles with my client app in telegram. When I run my code, I have to confirm my account everytime (in the telegram itself, I need to enter the phone number and the code that came to the…
Is there a way to get a list of channels I'm a member of in Telegram (preferably Telegram Desktop)? I may be able to come up with a solution using JS in the browser or even Selenium, but isn't there…
https://github.com/Eloise1988/OPENAI/blob/main/asyncV2/README.md api_id: Telegram API ID and Hash (you can get it from my.telegram.org) api_hash : Telegram API Hash (you can get it from my.telegram.org) session_hash : Telegram Session Hash (you can get it from my.telegram.org) I found api_id and api_hash,…
@BOT.message_handler(commands=['drink']) def drink(message): try: BOT.send_message(message.chat.id, f'I added {message.text.split(" ", 2)[1]} to your daily intake for today, {fecha_excel}!') except IndexError: BOT.send_message(message.chat.id, 'IndexError') I basically want to create a function to shorten the "BOT.send_message(message.chat.id," part, since it will always be the same…
How to open a mobile or desktop app with JavaScript from the browser? A perfect example of what I want to achieve is what Whatsapp and Telegram do when they manage to run their mobile or desktop apps after a…
I want to send my articles to my Telegram channel automatically by the date time I have scheduled, so I should use queue or cron job. I have used queue, so in local development to send notifications to telegram I…
I've been working with telegram bot using python for a while and everything was fine, today i was starting to work on a new project but i got a lot of error abut python-telegram-bot library.. so i uninstall it and…
I have a question that how to fetch the phone_number of a user by giving username or chat id. I know this question has been asked many times and everyone has said that there is no procedure for that but…
Please help me fix this bug in my Python code. Error type: Update tool.init() got an unexpected argument of the keyword 'token' Code: # Telegram Bot API from telegram.text import Updater updater = Updater(token='my bot token', context_user=True) dispatcher = updater.dispatcher…