gpt2bot icon indicating copy to clipboard operation
gpt2bot copied to clipboard

User session in Telegram supported ?

Open GraphGrailAi opened this issue 5 years ago • 2 comments

Hi, cool work. Does it support a session for every user that talk to bot in Telegram?

This is vital, because we should store conversation history for every user separated. I inspect code but did not found these

GraphGrailAi avatar Apr 04 '20 19:04 GraphGrailAi

Hi, it stores messages per chat (see chat_data in documentation), which makes sense since bot must be able to communicate to multiple users in a group. If you want to limit the bot to always communicate to one single user (even in a group with multiple users), you can fork the library and store messages in user_data.

polakowo avatar Apr 04 '20 19:04 polakowo

thanx. could you suggest a solution in this issue: https://github.com/microsoft/DialoGPT/issues/38 (not related to your repo, but belongs to model fine-tuning in Colab)

GraphGrailAi avatar Apr 04 '20 21:04 GraphGrailAi