Skip to content

Instantly share code, notes, and snippets.

@limcheekin
Created February 28, 2025 12:06
Show Gist options
  • Select an option

  • Save limcheekin/db8855804201508a5d39ad0d45fd3a5e to your computer and use it in GitHub Desktop.

Select an option

Save limcheekin/db8855804201508a5d39ad0d45fd3a5e to your computer and use it in GitHub Desktop.
telegram-bot-chat-ui

Create a Telegram Bot for OpenAI API which storing chat history in the PostgreSQL. Give the user option to retrieve the past conversations and select one to continue or resume the conversation. Please implement the application using the following python packages:

  • python-telegram-bot
  • SQLAlchemy
  • asyncpg
  • pytest
  • pytest-asyncio
  • aiosqlite

Please make sure all codes written with comprehensive test coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment