Skip to content

Develop a OpenAI powered Telegram Bot using Python.

Notifications You must be signed in to change notification settings

anandhu-vasu/build_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

BUILD_BOT WORKSHOP

Develop a OpenAI powered Telegram Bot using Python.


Installing Packages

We use python-telegram-bot package to build a bot.

It can be installed by executing following command on terminal.

pip install python-telegram-bot

Official openai package is used to connect with OpenAI API.

It can be installed by executing following command on terminal.

pip install openai

Creating a bot

image


Obtaining OpenAI API Key

We can get a API key for OpenAI from following link: https://platform.openai.com/account/api-keys


References

You can learn more about python-telegram-bot and openai api with examples from following links.

Python Telegram Bot Wiki:

https://github.com/python-telegram-bot/python-telegram-bot/wiki

OpenAI API Reference:

https://platform.openai.com/docs/api-reference/

About

Develop a OpenAI powered Telegram Bot using Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages