Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.09 KB

README.md

File metadata and controls

46 lines (28 loc) · 1.09 KB

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/