예제 #1
0
 def decorator(func):
     telethn.add_event_handler(func, events.ChatAction(**args))
     return func
예제 #2
0
 def decorator(func):
     telethn.add_event_handler(func, events.CallbackQuery(**args))
     return func
예제 #3
0
 def decorator(func):
     telethn.add_event_handler(func, events.InlineQuery(**args))
     return func
예제 #4
0
 def decorator(func):
     telethn.add_event_handler(func, events.UserUpdate(**args))
     return func
예제 #5
0
 def decorator(func):
     telethn.add_event_handler(func, events.NewMessage(**args))
     return func