chatgpt-tegram-bot icon indicating copy to clipboard operation
chatgpt-tegram-bot copied to clipboard

How do I allow for everybody

Open bestfriendai opened this issue 3 years ago • 2 comments

How do I allow for everybody who replies the the bot

bestfriendai avatar Dec 09 '22 19:12 bestfriendai

im getting this

Traceback (most recent call last): File "chatgpt-telegram.py", line 53, in bot = telebot.TeleBot(token=config.telegram_token) TypeError: init() got an unexpected keyword argument 'token' 

bestfriendai avatar Dec 09 '22 19:12 bestfriendai

Have you configured the config.py file with your telegram bot token?

You would need to remove this conditional to not check on who is messaging the bot:

https://github.com/nukeador/chatgpt-tegram-bot/blob/master/chatgpt-telegram.py#L93

But I would not recommend since the bot will be using your openai account or credentials, better to setup a list of allowed users.

nukeador avatar Dec 10 '22 14:12 nukeador