Exemplo n.º 1
0
def no_longer_afk(bot: Bot, update: Update):
    user = update.effective_user  # type: Optional[User]
    chat = update.effective_chat  # type: Optional[Chat]
    if not user:  # ignore channels
        return

    res = sql.rm_afk(user.id)
    if res:
        firstname = update.effective_user.first_name
        update.effective_message.reply_text(
            tld(chat.id, f"{firstname} is no longer AFK !"))
Exemplo n.º 2
0
def no_longer_afk(bot: Bot, update: Update):
    user = update.effective_user  # type: Optional[User]
    chat = update.effective_chat  # type: Optional[Chat]

    if not user:  # ignore channels
        return

    res = sql.rm_afk(user.id)
    if res:
        firstname = update.effective_user.first_name
        update.effective_message.reply_text(tld(chat.id, f"{firstname} is back to Virtual World! That is.. f"{fst_name} is no longerAway From Keyboard![AFK!]"))
Exemplo n.º 3
0
def no_longer_afk(bot: Bot, update: Update):
    user = update.effective_user  # type: Optional[User]
    chat = update.effective_chat  # type: Optional[Chat]

    res = sql.rm_afk(user.id)
    if res:
        firstname = update.effective_user.first_name
        try:
            update.effective_message.reply_text(
                tld(chat.id, f"User {firstname} is no longer AFK!"))
        except:
            return
Exemplo n.º 4
0
def no_longer_afk(bot: Bot, update: Update):
    user = update.effective_user  # type: Optional[User]
    chat = update.effective_chat  # type: Optional[Chat]

    if not user:  # ignore channels
        return

    res = sql.rm_afk(user.id)
    if res:
        firstname = update.effective_user.first_name
        try:
            update.effective_message.reply_text(tld(chat.id, f"wassup {firstname} jelek, kangen ak ya? mwehehe"))
        except:
            return
Exemplo n.º 5
0
def no_longer_afk(bot: Bot, update: Update):
    user = update.effective_user  # type: Optional[User]
    chat = update.effective_chat  # type: Optional[Chat]

    if not user:  # ignore channels
        return

    res = sql.rm_afk(user.id)
    if res:
        firstname = update.effective_user.first_name
        try:
            update.effective_message.reply_text(tld(chat.id, f"{firstname} im back udah jadi ni SLOWMO nya!"))
        except:
            return
Exemplo n.º 6
0
def no_longer_afk(bot: Bot, update: Update):
    user = update.effective_user  # type: Optional[User]
    chat = update.effective_chat  # type: Optional[Chat]

    if not user:  # ignore channels
        return

    res = sql.rm_afk(user.id)
    if res:
        firstname = update.effective_user.first_name
        try:
            update.effective_message.reply_text(
                tld(chat.id, f"#ONLINE\n{firstname} 𝗧𝗲𝗹𝗮𝗵 𝗸𝗲𝗺𝗯𝗮𝗹𝗶 𝗱𝗮𝗿𝗶 𝘼𝙁𝙆."))
        except:
            return
Exemplo n.º 7
0
def no_longer_afk(bot: Bot, update: Update):
    user = update.effective_user
    chat = update.effective_chat
    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:
            message.reply_text(
                tld(chat.id, "user_no_longer_afk").format(firstname))
        except Exception:
            return
Exemplo n.º 8
0
def no_longer_afk(bot: Bot, update: Update):
    user = update.effective_user  # type: Optional[User]
    chat = update.effective_chat  # type: Optional[Chat]

    if not user:  # ignore channels
        return

    res = sql.rm_afk(user.id)
    if res:
        firstname = update.effective_user.first_name
        try:
            update.effective_message.reply_text(
                tld(
                    chat.id,
                    f"{firstname} ആഹാ ആൾ എത്തിയല്ലോ😀😍 നോക്കി നിക്കണ്ട കേറി ഇങ്ങ് പോരെ🥳"
                ))
        except:
            return
Exemplo n.º 9
0
def no_longer_afk(bot: Bot, update: Update):
    user = update.effective_user  # type: Optional[User]
    chat = update.effective_chat  # type: Optional[Chat]

    if not user:  # ignore channels
        return

    res = sql.rm_afk(user.id)
    if res:
        firstname = update.effective_user.first_name
        try:
            update.effective_message.reply_text(
                tld(
                    chat.id,
                    f"{firstname} рк▓рлНркпрлЛ ркЖрк╡рлА ркЧркпрк╛ рккрк╛ркЫрк╛ЁЯдЧ"
                ))
        except:
            return