mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge branch 'dev-2.x' of https://github.com/barbashovtd/aiogram into patch-1
This commit is contained in:
commit
cdf5c79cd4
3 changed files with 3 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ allow_ip(TELEGRAM_SUBNET_1, TELEGRAM_SUBNET_2)
|
||||||
|
|
||||||
class WebhookRequestHandler(web.View):
|
class WebhookRequestHandler(web.View):
|
||||||
"""
|
"""
|
||||||
Simple Wehhook request handler for aiohttp web server.
|
Simple Webhook request handler for aiohttp web server.
|
||||||
|
|
||||||
You need to register that in app:
|
You need to register that in app:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ class ListOfLists(Field):
|
||||||
|
|
||||||
class DateTimeField(Field):
|
class DateTimeField(Field):
|
||||||
"""
|
"""
|
||||||
In this field st_ored datetime
|
In this field stored datetime
|
||||||
|
|
||||||
in: unixtime
|
in: unixtime
|
||||||
out: datetime
|
out: datetime
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ class HelperMode(Helper):
|
||||||
@classmethod
|
@classmethod
|
||||||
def _snake_case(cls, text):
|
def _snake_case(cls, text):
|
||||||
"""
|
"""
|
||||||
Transform text to snake cale (Based on SCREAMING_SNAKE_CASE)
|
Transform text to snake case (Based on SCREAMING_SNAKE_CASE)
|
||||||
|
|
||||||
:param text:
|
:param text:
|
||||||
:return:
|
:return:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue