nalgeon / pokitoki

Humble GPT Telegram Bot
MIT License
317 stars 56 forks source link

Bot does not respond to group users not included in the userlist #38

Closed BollexN1 closed 10 months ago

BollexN1 commented 10 months ago

Dear Developer. I have filled in the config telegram section as follows: /config telegram {'token': 'my_token', 'usernames': ['a', 'b'], 'admins': ['a', 'b'], 'chat_ids': [1, 2]}

With this setting, the bot does not answer questions from all group members, only from users in the list (same as admins list). Both groups are closed (not public). To make the bot respond to all members of a group I have to clear the list of users, but then the bot starts responding to any telegram user outside of the groups set in the config. What am I doing wrong? I need my bot works same as @Marika_tgbot))

nalgeon commented 10 months ago

The only reason I can think of is that the chat_ids are incorrect (i.e. these are not the actual IDs of your groups).

BollexN1 commented 10 months ago

The only reason I can think of is that the chat_ids are incorrect (i.e. these are not the actual IDs of your groups).

Thanks for replying.

Can you please tell me which format of chat_ids I need to use: -1001903067395 or 1903067395 Now my chat_ids looks like this (response from the bot): [1523306284, 1903067395].

nalgeon commented 10 months ago

Group IDs start with -100. The version command shows them when run in the group.

BollexN1 commented 10 months ago

Group IDs start with -100. The version command shows them when run in the group.

Thank you for the clarification. Indeed, my mistake, I didn't take into account the information from the /version command. Thanks again for the great development.

nalgeon commented 10 months ago

Sure!