Example #1
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text("Rá. Você não pode definir sua própria bio! Você está a mercê de outros aqui...")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text("Eu só aceito que usuários sudo definam a minha bio.")
            return

        text = message.text
        bio = text.split(None, 1)  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("Updated {}'s bio!".format(repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "A bio precisa ter menos de {} caracteres! Você usou {}.".format(
                        MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text("Responda a mesangem de alguém para definir sua bio!")
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text(
                "Ah, non puoi impostare la tua biografia! Sei in balia degli altri qui..."
            )
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(
                "Ehm ... sì, mi fido solo dei sudo-user per impostare la mia biografia."
            )
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("Ho aggiornato la bio di {}!".format(
                    repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "La bio deve avere meno di {} caratteri! Tu hai provato ad impostare {}."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(
            "Rispondi al messaggio di qualcuno per impostare la sua bio!")
Example #3
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text(
                "او شوما خیلی شاخی ، ولی نمیشه بیو خودتو بزاری !")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(
                "اومم .شرمنده داش من فقط به سازندم تو این مورد اعتماد میکنم")
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("بیو {} آبدیت شد!".format(
                    repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "یک بیو باید کمتر از {} کاراکتر باشه ، بیو انتخابی تو {} هست"
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text("اوم رو اون شخص ریپلی بزن لطفا!")
Example #4
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text(
                "자기 자신의 Bio 메시지를 설정할 수 없어요! 당신의 Bio 은(는) 다른 사람들의 마음대로입니다...")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text("음... 저의 Bio 은(는) 오직 절 개발한 개발자만 설정할 수 있어요.")
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("{} 님의 Bio 을(를) 업데이트했어요!".format(
                    repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "Bio 은(는) {} 자 아래여야 해요! 그러나 당신은 {} 자를 입력했어요.".format(
                        MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text("답장으로 Bio 을(를) 설정하려는 사용자를 알려주세요!")
Example #5
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text("Are you looking to change your own ... ?? That 's it.")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(" Only SUDO USERS can change my information.")
            return

        text = message.text
        bio = text.split(None, 1)  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("{} Information about the him has been successfully collected !".format(repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "About you {} Must stick to the letter! The number of characters you have just tried {} hm .".format(
                        MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(" His information can only be added if someone's MESSAGE as a REPLY")
Example #6
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text("Czy chcesz zmienić swój własny...?? OK...")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(
                "Tylko SUDO FUTRZAKI mogą zmieniać moje informacje.")
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text(
                    "{} Informacje o tym futrzaku zostały pomyślnie zebrane!".
                    format(repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "O tobie powinien ograniczać się do {} liter! Liczba właśnie wpisanych znaków {}."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(
            "Jego informacje można dodać tylko, jeśli czyjaś WIADOMOŚĆ jest jako ODPOWIEDŹ"
        )
Example #7
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text(
                "ඔබ ඔබේම වෙනස් කිරීමට බලා සිටිනවාද ... ?? ඒක තමයි.")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(
                " මගේ තොරතුරු වෙනස් කළ හැක්කේ SUDO පරිශීලකයින්ට පමණි.")
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text(
                    "{} ඔහු පිළිබඳ තොරතුරු සාර්ථකව එකතු කර ඇත!".format(
                        repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "ඔයා ගැන {} ලිපියට ඇලී සිටිය යුතුය! ඔබ දැන් උත්සාහ කර ඇති චරිත ගණන {} hm ."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(
            " ඔහුගේ තොරතුරු එක් කළ හැක්කේ යමෙකුගේ පණිවිඩය පිළිතුරක් ලෙස නම් පමණි"
        )
Example #8
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text("Ha, you can't set your own bio! You're at the mercy of others here...")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text("Erm... yeah, I only trust sudo users to set my bio.")
            return

        text = message.text
        bio = text.split(None, 1)  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("Updated {}'s bio!".format(repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "A bio needs to be under {} characters! You tried to set {}.".format(
                        MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text("Reply to someone's message to set their bio!")
Example #9
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text("هل تبحث عن تغيير الخاصة بك ...؟ هذا هو ذلك.")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(" فقط  SUDO USERS تستطيع تغيير معلوماتي")
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("{} معلومات حوله تم جمعها بنجاح!".format(
                    repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "عنك {} يجب أن تلتصق بالحرف! عدد الأحرف التي جربتها للتو {} HM."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(
            " لا يمكن إضافة معلوماته إلا إذا كان شخص ما MESSAGE مثل REPLY")
Example #10
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text(
                "Ha, you can't set your own bio! You're at the mercy of others here..."
            )
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(
                "Ehm... naja, Ich vertraue nur meinem Inhaber ^_^.")
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("Ich habe die bio von {} geupdated!".format(
                    repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "Eine bio muss unter {} Zeichen seim! Du wolltest {} setzen."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text("Reply to someone's message to set their bio!")
Example #11
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text(
                "Are you looking to change your own ... ?? That 's it.")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(" Only BOT Sudos can change my information.")
            return
        elif user_id == OWNER_ID:
            message.reply_text("You ain't setting my master bio LMAO😂.")
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("Updated's {} Bio !".format(
                    repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "About you {} Must stick to the letter! The number of characters you have just tried {} hm ."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(" Reply to someone's message to set their bio! ")
Example #12
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text(
                "Ha, kendi biyoinini ayarlayamazsın! Burada başkalarının merhametindesin..."
            )
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text(
                    "{} Adlı kişinin biyografisi güncellendi!".format(
                        repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "Bir biyografi {} karakterlerin altında olmalı! {} Ayarlamayı denediniz."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(
            "Bir kişinin biyografisini ayarlamak için mesajını yanıtla!")
Example #13
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text(
                "താങ്കൾ താങ്കളുടെ തന്നെ വിവരങ്ങൾ മാറ്റാൻ നോക്കുന്നോ...?? അത് പറ്റില്ല."
            )
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(
                "എന്റെ വിവരങ്ങൾ മാറ്റാൻ SUDO USERSനു മാത്രമേ സാധിക്കുകയുള്ളു ."
            )
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text(
                    "{} യയെ കുറിച്ചുള്ള വിവരം വിജയകരമായി ശേഖരിച്ചിരുന്നു !".
                    format(repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "നിങ്ങളെക്കുറിച്ചുള്ള വിവരണം {} അക്ഷരത്തിൽ ഒതുക്കേണ്ടതാണ് ! നിങ്ങൾ ഇപ്പോൾ ശ്രമിച്ച അക്ഷരങ്ങളുടെ എണ്ണം  {} ആണ് ."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(
            "ആരുടെയെങ്കിലും MESSAGEന് REPLY ആയി കൊടുത്താൽ മാത്രമേ അദ്ദേഹത്തിന്റെ വിവരങ്ങൾ ചേർക്കാൻ കഴിയുകയുള്ളു "
        )
Example #14
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text("Özüvü dəyişmək istəyirsən? ... ?? That 's it.")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(
                " Sadəcə SUDO İSTİFADƏÇİLƏR mənim məlumatımı dəyişə bilər.")
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("{} haqqında məlumat toplanıldı !".format(
                    repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "Haqqında hissəsi {} ədəd simvol olmalıdır! Sənin yazdığın bio dakı simvol sayı {} ədəddir ."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(" Mesaja reply vermək lazımdı.")
Example #15
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message  # type: Optional[Message]
    sender = update.effective_user  # type: Optional[User]
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text(
                "Kendi değiştirmek için mi arıyorsunuz ... ?? That 's it.")
            return
        elif user_id == bot.id and sender.id not in SUDO_USERS:
            message.reply_text(
                " Bilgilerimi yalnızca SUDO KULLANICILARI DEĞIŞTIREBILIR.")
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text(
                    "{} Onun hakkında bilgi başarıyla toplandı !".format(
                        repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "Senin hakkında {} Mektuba bağlı kalmalı! Az önce denediğiniz karakter sayısı {} hm ."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(
            " Onun bilgileri sadece bir kişinin MESAJ ie yanıt olarak eklenebilir"
        )
Example #16
0
def about_bio(update: Update, context: CallbackContext):
    args = context.args
    bot = context.bot
    message = update.effective_message

    user_id = extract_user(message, args)
    user = bot.get_chat(user_id) if user_id else message.from_user
    info = sql.get_user_bio(user.id)

    if info:
        update.effective_message.reply_text(
            "*{}*:\n{}".format(user.first_name, escape_markdown(info)),
            parse_mode=ParseMode.MARKDOWN,
        )
    elif message.reply_to_message:
        username = user.first_name
        update.effective_message.reply_text(
            f"{username} hasn't had a message set about themselves yet!")
    else:
        update.effective_message.reply_text(
            "You haven't had a bio set about yourself yet!")
    message = update.effective_message
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id

        if user_id == message.from_user.id:
            message.reply_text(
                "Ha, you can't set your own bio! You're at the mercy of others here..."
            )
            return

        sender_id = update.effective_user.id

        if (user_id == bot.id and sender_id not in SUDO_USERS
                and sender_id not in DEV_USERS):
            message.reply_text(
                "Erm... yeah, I only trust sudo users or developers to set my bio."
            )
            return

        text = message.text
        # use python's maxsplit to only remove the cmd, hence keeping newlines.
        bio = text.split(None, 1)

        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("Updated {}'s bio!".format(
                    repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "A bio needs to be under {} characters! You tried to set {}."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text("Reply to someone's message to set their bio!")
Example #17
0
def set_about_bio(bot, update):
    message = update.effective_message
    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id == message.from_user.id:
            message.reply_text("Ha, you can't set your own bio! You're at the mercy of others here...")
            return

        text = message.text
        bio = text.split(None, 1)  # use python's maxsplit to only remove the cmd, hence keeping newlines.
        if len(bio) == 2:
            sql.set_user_bio(user_id, bio[1])
            message.reply_text("Updated {}'s bio!".format(repl_message.from_user.first_name))
    else:
        message.reply_text("Reply to someone's message to set their bio!")
Example #18
0
def set_about_bio(update: Update, context: CallbackContext):
    message = update.effective_message
    sender_id = update.effective_user.id
    bot = context.bot

    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id in (777000, 1087968824):
            message.reply_text("Don't set bio for Telegram bots!")
            return

        if user_id == message.from_user.id:
            message.reply_text(
                "Ha, you can't set your own bio! You're at the mercy of others here..."
            )
            return

        if user_id in [777000, 1087968824] and sender_id not in DEV_USERS:
            message.reply_text("You are not authorised")
            return

        if user_id == bot.id and sender_id not in DEV_USERS:
            message.reply_text("Erm... yeah, I only trust Eagle Union to set my bio.")
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.

        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text(
                    "Updated {}'s bio!".format(repl_message.from_user.first_name)
                )
            else:
                message.reply_text(
                    "Bio needs to be under {} characters! You tried to set {}.".format(
                        MAX_MESSAGE_LENGTH // 4, len(bio[1])
                    )
                )
    else:
        message.reply_text("Reply to someone to set their bio!")
Example #19
0
def set_about_bio(bot: Bot, update: Update):
    message = update.effective_message
    sender_id = update.effective_user.id

    if message.reply_to_message:
        repl_message = message.reply_to_message
        user_id = repl_message.from_user.id
        if user_id in (777000, 1087968824):
            message.reply_text("Jangan setel bio untuk bot Telegram!")
            return

        if user_id == message.from_user.id:
            message.reply_text(
                "Ha, Anda tidak dapat mengatur biografi Anda sendiri! Anda berada di bawah belas kasihan orang lain di sini..."
            )
            return

        if (user_id == bot.id and sender_id not in SUDO_USERS
                and sender_id not in DEV_USERS):
            message.reply_text(
                "Emm ... ya, saya hanya mempercayai pengguna sudo atau pengembang untuk mengatur bio saya."
            )
            return

        text = message.text
        bio = text.split(
            None, 1
        )  # use python's maxsplit to only remove the cmd, hence keeping newlines.

        if len(bio) == 2:
            if len(bio[1]) < MAX_MESSAGE_LENGTH // 4:
                sql.set_user_bio(user_id, bio[1])
                message.reply_text("Biografi {} diperbarui!".format(
                    repl_message.from_user.first_name))
            else:
                message.reply_text(
                    "Biografi harus kurang dari {} karakter! Anda mencoba untuk mengatur {}."
                    .format(MAX_MESSAGE_LENGTH // 4, len(bio[1])))
    else:
        message.reply_text(
            "Balas pesan seseorang untuk menyetel biografi mereka!")