-
Pip
pip install tg-to-obj -
Git Clone:
git clone https://github.com/francis-taylor/TgToObj/ && cd TgToObg && python setup.py install
I will be using the Amanobot framework to receive api updates.
import amanobot
import tg_to_obj
bot = amanobot.Bot('1111560977:AAGUffJO2TEw49v81bsPbtWXKR4mYVejvuA')
for i in bot.get_updates():
print("Input:", tg_to_obj.Make(msgs).update_type) ## get the type of updatethe field from has been changed to from_user, as it is a python obj declared by default.