From 705792db864544a78f3f5443baa9ba09d988cd7d Mon Sep 17 00:00:00 2001 From: corsaronero Date: Wed, 19 Oct 2022 16:31:41 +0000 Subject: [PATCH] added telegram bot --- .gitignore | 1 + telegram/getgroupmessages.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .gitignore create mode 100644 telegram/getgroupmessages.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01420da --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +telegram/bottoken.txt diff --git a/telegram/getgroupmessages.py b/telegram/getgroupmessages.py new file mode 100644 index 0000000..d546661 --- /dev/null +++ b/telegram/getgroupmessages.py @@ -0,0 +1,12 @@ + + +import telepot + + +bot = telepot.Bot('botfather given token') + +response = bot.getUpdates() + +print(response) + +print(bot.getMe())