Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

A sample telegram bot made with aiogram, that fetches updates using the web-hook connection. Can be easily deployed to Heroku.

License

Notifications You must be signed in to change notification settings

aahnik/webhook-aiogram-heroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webhook-aiogram-heroku

Generic badge  MIT license telegram-chat

A simple telegram echo bot made with aiogram, that fetches updates using web-hook connection.

Deploy

This bot can be easily deployed to Heroku cloud platform.

The following steps assume that you have Heroku CLI installed in your system.

  1. Clone the repo and move into the project directory.
git clone https://github.com/aahnik/webhook-aiogram-heroku.git
cd webhook-aiogram-heroku
  1. Create a new Heroku app.
heroku create
  1. Set the Config Vars.
👉 Click here to know more
Config Var Description
HEROKU_APP_NAME name of your Heroku app. You may set it manually or turn on Dyno Metadata feature which is currently in Heroku Labs.
BOT_TOKEN the token for your bot given by @BotFather after bot creation.
heroku labs:enable runtime-dyno-metadata
heroku config:set BOT_TOKEN=<your token>
  1. Push the code to Heroku.
git push heroku main

Cheers

To confirm your bot is working:

  • Run heroku ps which will show you details of your dyno.

  • Send a message to your bot, and your bot will echo it back to you.

About

A sample telegram bot made with aiogram, that fetches updates using the web-hook connection. Can be easily deployed to Heroku.

Topics

Resources

License

Stars

Watchers

Forks

Languages