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

No chat_id #12

Open
Yoken0S opened this issue Feb 17, 2021 · 1 comment
Open

No chat_id #12

Yoken0S opened this issue Feb 17, 2021 · 1 comment

Comments

@Yoken0S
Copy link

Yoken0S commented Feb 17, 2021

Hello,

i've installed th bot on my server but even when I add it to a channel/group it doesn't seem to add the chan_id.

See logs :
2021-02-17 02:08:55,585 - main - INFO - I have been added to 1 chats
2021-02-17 02:08:55,585 - main - INFO - Invited by XXX to chat XXXXX (XXXXX)
bot.py:181: TelegramDeprecationWarning: The @run_async decorator is deprecated. Use the run_async parameter of your Handler or Dispatcher.run_async instead.
send_async(context, chat_id=chat_id, text=text)
2021-02-17 02:08:55,605 - telegram.ext.dispatcher - ERROR - A promise with deactivated error handling raised an error.

(I replaced by XXXX but informations are correct)

And so every command I do it answer me : Please add me to a group first!

@Yoken0S
Copy link
Author

Yoken0S commented Feb 17, 2021

I got some news,

To remove the warning, just replace @run_async by run_async.
Users must have the right to post message or else bot will remove chat id instantantly.
With all these changes I got no more error and bot said its first message in Group but still no commands work (except /help)..

"Please add me to a group first!"

Even if it has added the group in its db...

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

1 participant