mik3sw / GoogleAssistantBot

Simple and Open source Telegram bot, for group managing (and fun)
https://t.me/pythonandroidbot
Apache License 2.0
8 stars 3 forks source link

Create OBJECT ENTITY DEFINITIONS #13

Closed BluLupo closed 3 years ago

BluLupo commented 3 years ago

How to use entity object

def user(update,context): user = user_object(update) print(user.id) print(user.username) print(user.first_name) ecc.

def chat(update,context): user = chat_object(update) print(chat.id) print(chat.title) ecc.