![]() ![]() # Count how many members have deleted their account # Define a command handler for the /remove command, which removes deleted accounts from the groupĭef remove(update: Update, context: CallbackContext): # Define a command handler for the /start command, which prints a greetingĭef start(update: Update, context: CallbackContext):Ĭ_message(chat_id=update.effective_chat.id, text="Hello! I am RDA_bot, a bot that removes deleted accounts from a Telegram group.") Updater = Updater(token="bot_token", use_context=True) ![]() # Create a new Telegram bot & # Start the bot and connect to the Telegram API I'm trying to code a telegram bot to remove any deleted accounts in the group chat but with telegram removing get_chat_members in later versions I'm at a lost, here's my current code how can I get all the members or loop through all members to check rather the account is deleted or not? from telegram import *įrom telegram.ext import Updater, CommandHandler, MessageHandler, Filtersįrom telegram.ext import CallbackQueryHandler, CallbackContextįrom import run_async
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |