mirror of
				https://github.com/civsocit/olgram.git
				synced 2023-07-22 01:29:12 +03:00 
			
		
		
		
	test
This commit is contained in:
		
							parent
							
								
									5ef9596ff1
								
							
						
					
					
						commit
						8b73746bcb
					
				| @ -8,7 +8,8 @@ from olgram.models.models import Bot | |||||||
| async def message_handler(message, *args, **kwargs): | async def message_handler(message, *args, **kwargs): | ||||||
|     if message.text and message.text.startswith("/start"): |     if message.text and message.text.startswith("/start"): | ||||||
|         # На команду start нужно ответить, не пересылая сообщение никуда |         # На команду start нужно ответить, не пересылая сообщение никуда | ||||||
|         return SendMessage(chat_id=message.chat.id, text=f'Hi from webhook {args} {kwargs}') |         bot = AioBot.get_current() | ||||||
|  |         return SendMessage(chat_id=message.chat.id, text=f'Hi from webhook {args} {kwargs} {bot}') | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class CustomRequestHandler(WebhookRequestHandler): | class CustomRequestHandler(WebhookRequestHandler): | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 mihalin
						mihalin