mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-15 11:25:54 +00:00
Rewrite Bot classes. Add moooooore pydocs.
This commit is contained in:
parent
a6e90655bc
commit
ffbb89100c
5 changed files with 2030 additions and 967 deletions
|
|
@ -86,12 +86,7 @@ def _compose_data(params=None, files=None):
|
|||
|
||||
if params:
|
||||
for key, value in params.items():
|
||||
# TODO: Normalize data in other place.
|
||||
if value.__class__ is dict:
|
||||
value = json.dumps(value)
|
||||
elif hasattr(value, 'to_json'):
|
||||
value = json.dumps(value.to_json())
|
||||
data.add_field(key, value)
|
||||
data.add_field(key, str(value))
|
||||
|
||||
if files:
|
||||
for key, f in files.items():
|
||||
|
|
|
|||
1552
aiogram/bot/base.py
1552
aiogram/bot/base.py
File diff suppressed because it is too large
Load diff
1425
aiogram/bot/bot.py
1425
aiogram/bot/bot.py
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue