Skip to content

johnedstone/telegram-telethon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

135 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This repository contains ...

  • Three Telegram bots using the python Telethon library

    • list_uptimes: which pulls data from a rest api server and displays it in a Telegram bot
    • location_app: which logs to stdout and stderr the data from the Telegram Location widget
    • location_to_restapi_app which posts the Telegram Location widget data to a restapi server
  • as well as the Django REST API which is the rest api that the third bot (above) posts to.

  • The playbooks folder contains the ansible playbooks to install the bots and REST API on an AWS EC2 instance running Nginx and MariaDB, e.g a t3.micro "bitnami-wordpresspro-5.9.3-17-r06-linux-debian-10-x86_64-hvm-ebs-nami-78b1d030-4c7d-4ade-b8e6-f8dc86941303" AMI

Current State

  • list_uptimes, location_app, location_to_restapi_app bots finished, including ansible playbooks for installing them
  • 01-Jul-2022: Ansible install for geolocation_restapi completed

Currently Running

  • list_uptimes app
  • location_to_restapi app which is talking to ...
  • ... geolocation_restapi

To Do

  • Clean up ansible playbook for geolocations so naming is consistent (location/geolocation)
  • Add Ansible role for using Postgres instead of MariaDB - note: 11-Jul added postgres role
  • Fix playbook so handlers is not repeated for each role
  • Rerun geolocation playbook on a fresh install to check for bugs
  • Deal with pip --update not being idempotent

Related Readme's

About

Telegram (telethon) bots and Django REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published