welcomebot icon indicating copy to clipboard operation
welcomebot copied to clipboard

bot keeps saying "Sorry, only the person who invited me can do that."

Open bendani opened this issue 6 years ago • 3 comments

I have installed python 3.4 with pickledb and python-telegram-bot 5.1.1 but bot doesn't seems to respond my commands. he just keeps saying "Sorry, only the person who invited me can do that."

can you please advise what is causing it?

bendani avatar Aug 23 '18 08:08 bendani

Bug is present. After the long period of offline, the bot does not listen to the Administrator. Reinvite does not help.

engelsit avatar Apr 01 '20 22:04 engelsit

Same issue here, bot say: "Sorry, only the person who invited me can do that.

herwincamargo avatar Apr 11 '20 16:04 herwincamargo

Inviting isn't working anymore. Work around that I use : The first person that runs /setadmin will be added to the db and can lock/unlock/... Just add a new handler and function

dp.add_handler(CommandHandler("setadmin", set_admin))

def set_admin(update, context):
    chat_id = update.message.chat.id
    admin_id = update.message.from_user.id
    admin_key = str(chat_id) + "_adm"
    
    if not db.exists(admin_key):
        db.set(str(chat_id) + "_adm", admin_id)
        send_async(context, chat_id=chat_id, text="Admin set!")
    else:
        send_async(context, chat_id=chat_id, text="Admin already set!")

Thx Jannes Höke for this bot, learned a lot from it !

AlainLaurent avatar Oct 15 '20 22:10 AlainLaurent