Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bendani opened this issue Aug 23, 2018 · 3 comments
Open

Comments

@bendani
Copy link

bendani commented Aug 23, 2018

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?

@engelsit
Copy link

engelsit commented Apr 1, 2020

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

@herwincamargo
Copy link

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

@AlainLaurent
Copy link

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants