def welcomeFilter(update: Update, context: CallbackContext): print("Test") WELCOME_GROUP = 7 dispatcher.add_handler(ChatMemberHandler(welcomeFilter, ChatMemberHandler.C...
In Ptb code: msg = update.effective_message keyb += [[InlineKeyboardButton(f"{csql.getCaptcha(str(chat.id))[3]}", url="http://t.me/{}?start=captcha_{}_{}".format(bot.username...
sender = await event.get_sender() print(sender.username) Is this correct?
In ptb: mute_stat = False/True mute_time = 0 chat_permissions = ChatPermissions(can_send_messages=False, can_send_other_messages=False, can_send_media_messages=False, can_add...
Can we make bot like it will send message in every group at every 10 min counter = 10 tol = "hello" file = None for _ in range(counter): async for lol in event.client...
Code: if .....: keyb = [[...(......,...)]] # this is working good else: keyb = [] # error here try: msg = await event.reply(res, parse_mod...
How to get username of updater = ext.Updater(............) def start(update: Update, ....): mention = update.effective_user. How to get mention?