Skip to content

RobiMez/PTB_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple python-telegram-bot Template

Features

  • Rotated file logging
  • Support for sentry
  • Mongo db

Setup

  • Clone this repo
  • Create a .env file and add in your
    • Telegram BOT api token
    • Mongo db uri and
    • Sentry ingest link
TOKEN=0000000000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
DBURI=mongodb+srv://<USER>:<PASSWORD>@<CLUSTER>.gkazp.mongodb.net
SENTRY=https://XX000000XX0000X0XX00X00000XXXX0X@X000000.ingest.sentry.io/0000000
  • Run the script
python main.py
  • Send the bot a /start and check if you get a " hi there im alive " message back

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages