Installation :
pip install EzTg
or
pip3 install EzTg
Initializing:
from EzTg import EzTg # Importing EzTg class
bot = EzTg('bot-token') # Initialize bot
def main(update): # Define main function
message = update['message'] # Defining message variable
if message['text'] == '/start':
print('Hello World')
bot.start_polling(main)
To send methods do:
bot.send('method_name', parameter1=variable1, parameter2=variable2)
"""To use already implemented methods do:"""
bot.method(parameter1=variable1, parameter2=variable2)
To check all methods and also all attributed of objects take a look at https://core.telegram.org/bots
If you want us to add any callable method instead of using bot.send open an issue at https://github.com/HexyeDev/EzTg/issues
ALREADY IMPLEMENTED METHODS:
EzTg CUSTOM METHODS: