def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} Baka came again!', '{} Noob is no longer afk!', '{} is now in the chat!', '{} welcome back.. no one missed you!!!', '{} welcome back...Now pay 100$ or get banned.', '{} is finally here!', 'Welcome back! {}', 'Where is {}?\nIn the chat!' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): global afk_time user = update.effective_user message = update.effective_message msg_id = message.message_id if not user: # ignore channels return #wht_time = get_readable_time((time.time() - afk_time)) res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = ['{} is here!! Yayy!!!', '{} is awake!! kek!!', '{} r u feeling good now? Meow!!' , 'A huge meteor..... oh no thts {} Nyahh!! ', '{}-kun pops outta nowhere, Nyah!!' , ' Intensity Intensifies as {} is here!!!', '{}-kun i saw u were sleeping with a bot!!! kek!!!', 'unoo.... eto... {} KuN! i s here!!! meowww!!' ] chosen_option = random.choice(options) update.effective_message.reply_text(chosen_option.format(firstname)) except: print("Exception") return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: # dont say msg return firstname = update.effective_user.first_name try: options = [ "{} disini!", "{} telah kembali!", "{} sekarang berada dalam percakapan!", "{} sudah keluar dari goa!", "{} kembali online!", "{} akhirnya kembali!", "Selamat datang kembali! {}", "Where is {}?\nIn the chat!", ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: # dont say msg return firstname = update.effective_user.first_name try: options = [ "mo apa balik lagi? {}", "welkambek {}!", "{} pengangguran balik lagi!", "WB {}!", "{} Kembali online!", "{} is finally here!", "Welcome back! {}", "Dimana {}?\nIn the chat!", ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} is here again (❁´◡`❁)!', '{} is back 😎!', '{} is now in the chat 🤗!', '{} is awake 😋!', '{} is back online to rock!', '{} is finally here after 100 light years!', 'Welcome back UwU! {}', 'Where is {}?\nIn the chat OwO!' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} is here!', '{} is back! No one missed you!', '{} is now back!', '{} is awake! I missed you a lot friend 🥺', '{} is back online! Yayyyy!', '{} is finally here!', 'Welcome back! {}', '{} was watching anime.. so was afk.!' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: # dont say msg return firstname = update.effective_user.first_name try: options = [ "{} is here!", "{} is back!", "{} is now in the chat!", "{} is awake!", "{} is back online!", "{} is finally here!", "Welcome back! {}", "Where is {}?\nIn the chat!", ] chosen_option = random.choice(options) update.effective_message.reply_text(chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ "{}'s Mom! {} Is wasting his time in the chat again!", "Dead {} Came Back From His Grave!", "We thought that we lost you, {}", "Welcome Back {} now pay $1000 to Get freedom or get banned!", "{} Good job waking up now get ready for your classes!", "Hey,{}! Why weren't you online for such a long time?", "{}, why did you came back?", "Ah shit, here we go again with {}", "Oh no! not you again, {}", "Welcome to hell chat again, {}", "Mission passed unsuccessfully, {}" ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: # dont say msg return firstname = update.effective_user.first_name try: options = [ "{} đang ở đây!", "{} đã trở lại!", "{} đang ở trong cuộc trò chuyện!", "{} đã thức dậy!", "{} đã online trở lại!", "{} cuối cùng cũng đã ở đây!", "Chào mừng đã trở lại! {}", "{} đang ở đâu?\nĐang trong cuộc trò chuyện!", ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname), ) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} is here!', '{} is back!', '{} is now in the chat!', '{} why you came here?', '{} is wasting his time in this chat!', '{} welcome back... now pay 100$ or get banned.', 'Yamete...Yamete-kudasai {}-sama', 'Oh my! {} got no chills!!', '{} got a girlfriend! thats why he was afk.', '{} welcome to hell again.', '{} is here! start the show!', '{} bruh you should delete your telegram account.', '{} ahem! my love is here!', '{} damn... I saw you were online.. reading the messages.. but u were afk.', '{} yess.. lets start trashing the chat!', 'Spammer just arrived.. be ready everyone.. let me grab my ban-hammer!', '{} please be gentle with me... in the chat..' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} ആഹാ ആൾ എത്തിയല്ലോ😀😍 നോക്കി നിക്കണ്ട കേറി ഇങ്ങ് പോരെ🥳!', ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} gəldi!', '{} geri döndü!', '{} artıq qrupdadır!', '{} onlayndır!', '{} artıq onlayndır!', '{} axırki buradadır!', 'Xoşgəldin! {}', '{} haradadır?\nHaa qrupdaymış!' ] chosen_option = random.choice(options) update.effective_message.reply_text(chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ 'Yo wassap {}!', 'Welkombek {}!', 'Selamat Datang kembali {}, Gada yang kangen kamu btw', '{} Kenapa lu kesini woe?', '{} itu nyimakin chat ini dari tadi!', 'Yo {} Mau Mandi dulu?, Makan dulu?, Atau... @PicoKwai? >~<', 'Yamete...Yamete-kudasai {}-sama', 'Oh gawat! {} Gabisa bersantuy!!', 'Si {} dapet Pacar makanya dia afk tadi.', 'Selamat datang kembali {}! Tentunya dineraka ini wahaha!!', '{} disini! Mari mulai kontesnya!', '{} Keknya lu harus delete akun beb.', '{} ahem! Kesayanganku ada disini!', 'Ey {} Bangsul, Gue liat lu nyimak tapi ga nimbrung, Tabok nih (°-°).', '{} cuy kita spam di grup kuy :3', '{}Kang spam telah tiba, Siap siap kawan! Gue bakal siapin palu bannednya!', 'Yasashiku shinasai yo {} oni chan...' ] chosen_option = random.choice(options) update.effective_message.reply_text(chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ 'Okaerinasai {}-san~', 'Yoo Okaerinasai Baaaka 😒’', 'Yahhoo {}-san', 'Okaerinasai darling', 'Yahho darling', 'Yo {}-san, okaerinasai~', 'Yoo baka {}' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ 'Welcome back {}', 'Guards!!! guns out {} is here', '{} is no longer afk', '{}... why tf were you afk?', '{} I missed u when u were afk' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(bot: Bot, update: Update): user = update.effective_user # type: Optional[User] chat = update.effective_chat # type: Optional[Chat] message = update.effective_message # type: Optional[Message] if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} is here!', '{} is back!', '{} is now in the chat!', '{} is awake!', '{} is back online!', '{} is finally here!', 'Welcome back! {}', 'Where is {}?\nIn the chat!' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} Baka Here!', '{} Baka Here!', '{} We Miss You Darling!', '{} Pay Me 100$!', '{} is back online!', '{} is finally Found!', 'Okaerinasai {} San', 'Where My Darling{}?\nIn the chat!' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ ' Welcome Back Baka!', '{} Go Slash the Titans', '{} is now in the chat!', '{} yo', '{} Go find the titan', '{} is finally here!', 'Yo {} A Titan', 'Where is {}?\nIn the chat!' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(bot: Bot, update: Update): user = update.effective_user # type: Optional[User] chat = update.effective_chat # type: Optional[Chat] message = update.effective_message # type: Optional[Message] if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} burada!', '{} geri döndü!', '{} şuada sohbette!', '{} şuanda uyandı!', '{} şuanda aktif!', '{} sonunda döndün!', 'Tekrar Hoşgeldin! {}', 'Nerelerdeydin {}?\nMesajlaş şimdi!' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} DUAR MEMEK AK DATANG!', '{} YUHU BALIK LAGI!', '{} ADA DISINI!', '{} DUAR KONTOL AK HADIR!', '{} AK DATANG!', '{} HADIR HADIR HADIR!', 'Anak kontol! {}', 'Dimana coba {}?\nCiluk ba!' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return
def no_longer_afk(update: Update, context: CallbackContext): user = update.effective_user message = update.effective_message if not user: # ignore channels return res = sql.rm_afk(user.id) if res: if message.new_chat_members: #dont say msg return firstname = update.effective_user.first_name try: options = [ '{} ආපහු ආවෝ 🥳', '{} ආපහු ඇවිල්ලා', '{} දැන් group එකේ ඉන්නෝ!', '{} is awake!', '{} ආපහු online ඇවිල්ලා🤠', '{} අන්තිම වතාවට ඇවිල්ලා😐', 'සාදරයෙන් පිළිගන්නවා {}', '{} කොහේද ඉන්නේ?\nGroup එකේ ඉන්නේ' ] chosen_option = random.choice(options) update.effective_message.reply_text( chosen_option.format(firstname)) except: return