Dan
39439255fd
Merge develop -> asyncio
2019-05-25 02:02:37 +02:00
Dan
ef912d21ef
Use more concise and cleaner description of a method and a type
2019-05-12 19:49:06 +02:00
Dan
1737ba5f49
Revamp docs about the main Pyrogram package
2019-05-09 04:28:46 +02:00
Dan
952f9bc503
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/__init__.py
# pyrogram/client/ext/base_client.py
# pyrogram/client/methods/messages/delete_messages.py
# pyrogram/client/types/messages_and_media/message.py
2019-04-30 11:51:36 +02:00
Dan
63d76a7f13
Bring back automatic mime type detection for new uploads ( fixes #239 )
...
- Add mime.types file to contain a good database of type -> ext mappings
from svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
- Load mime.type at BaseClient creation and add two convenience methods
for guessing mime types from filenames and extensions from mime types,
guess_mime_type and guess_extension
- Make all send_* method as well as download_media use the new mime type
database via guess_mime_type and guess_extension methods
2019-04-20 18:56:30 +02:00
Dan
7f7f9768fd
Add missing awaits
2019-03-27 15:16:15 +01:00
Dan
1179a5b994
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/__init__.py
# pyrogram/client/client.py
# pyrogram/session/session.py
2019-03-25 11:52:54 +01:00
Dan
b5c6db6db0
Refactor project and move errors namespace out from pyrogram.api
2019-03-25 11:23:45 +01:00
Dan
5d163ebabc
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/dispatcher/dispatcher.py
# pyrogram/client/types/messages_and_media/sticker.py
2019-03-22 13:36:27 +01:00
Dan
27666ec174
Small docs fixes
2019-03-22 12:14:31 +01:00
Dan
84fb959c8c
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/__init__.py
# pyrogram/client/client.py
# pyrogram/client/methods/bots/answer_callback_query.py
# pyrogram/client/methods/bots/get_game_high_scores.py
# pyrogram/client/methods/bots/get_inline_bot_results.py
# pyrogram/client/methods/bots/request_callback_answer.py
# pyrogram/client/methods/bots/send_game.py
# pyrogram/client/methods/bots/send_inline_bot_result.py
# pyrogram/client/methods/bots/set_game_score.py
# pyrogram/client/methods/chats/delete_chat_photo.py
# pyrogram/client/methods/chats/export_chat_invite_link.py
# pyrogram/client/methods/chats/get_chat.py
# pyrogram/client/methods/chats/get_chat_member.py
# pyrogram/client/methods/chats/get_chat_members.py
# pyrogram/client/methods/chats/get_chat_members_count.py
# pyrogram/client/methods/chats/get_dialogs.py
# pyrogram/client/methods/chats/iter_chat_members.py
# pyrogram/client/methods/chats/iter_dialogs.py
# pyrogram/client/methods/chats/join_chat.py
# pyrogram/client/methods/chats/kick_chat_member.py
# pyrogram/client/methods/chats/leave_chat.py
# pyrogram/client/methods/chats/pin_chat_message.py
# pyrogram/client/methods/chats/promote_chat_member.py
# pyrogram/client/methods/chats/restrict_chat_member.py
# pyrogram/client/methods/chats/set_chat_description.py
# pyrogram/client/methods/chats/set_chat_photo.py
# pyrogram/client/methods/chats/set_chat_title.py
# pyrogram/client/methods/chats/unban_chat_member.py
# pyrogram/client/methods/chats/unpin_chat_message.py
# pyrogram/client/methods/contacts/add_contacts.py
# pyrogram/client/methods/contacts/delete_contacts.py
# pyrogram/client/methods/contacts/get_contacts.py
# pyrogram/client/methods/messages/delete_messages.py
# pyrogram/client/methods/messages/download_media.py
# pyrogram/client/methods/messages/edit_message_caption.py
# pyrogram/client/methods/messages/edit_message_media.py
# pyrogram/client/methods/messages/edit_message_reply_markup.py
# pyrogram/client/methods/messages/edit_message_text.py
# pyrogram/client/methods/messages/forward_messages.py
# pyrogram/client/methods/messages/get_history.py
# pyrogram/client/methods/messages/get_messages.py
# pyrogram/client/methods/messages/iter_history.py
# pyrogram/client/methods/messages/send_animation.py
# pyrogram/client/methods/messages/send_audio.py
# pyrogram/client/methods/messages/send_cached_media.py
# pyrogram/client/methods/messages/send_chat_action.py
# pyrogram/client/methods/messages/send_contact.py
# pyrogram/client/methods/messages/send_document.py
# pyrogram/client/methods/messages/send_location.py
# pyrogram/client/methods/messages/send_media_group.py
# pyrogram/client/methods/messages/send_message.py
# pyrogram/client/methods/messages/send_photo.py
# pyrogram/client/methods/messages/send_sticker.py
# pyrogram/client/methods/messages/send_venue.py
# pyrogram/client/methods/messages/send_video.py
# pyrogram/client/methods/messages/send_video_note.py
# pyrogram/client/methods/messages/send_voice.py
# pyrogram/client/methods/password/change_cloud_password.py
# pyrogram/client/methods/password/enable_cloud_password.py
# pyrogram/client/methods/password/remove_cloud_password.py
# pyrogram/client/methods/users/delete_user_profile_photos.py
# pyrogram/client/methods/users/get_user_profile_photos.py
# pyrogram/client/methods/users/get_users.py
# pyrogram/session/auth.py
# pyrogram/session/session.py
2019-03-16 19:49:38 +01:00
Dan
3e18945f3c
Reformat code
2019-03-16 19:23:23 +01:00
Dan
34b51b6481
Force keyword arguments for all TL types
2019-03-16 16:53:52 +01:00
Dan
02a1dde399
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/client.py
# pyrogram/client/methods/chats/join_chat.py
# pyrogram/client/methods/messages/edit_message_media.py
2019-03-02 16:36:44 +01:00
Dan
50cff068a0
Fix send_* methods sending the incorrect Telegram media message type
...
This makes Pyrogram consistent with the official Bot API behaviour.
2019-02-12 20:29:05 +01:00
Dan
1e6d03108f
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/__init__.py
# pyrogram/client/client.py
# pyrogram/client/methods/contacts/get_contacts.py
# pyrogram/client/methods/messages/send_media_group.py
# requirements.txt
2019-02-07 16:20:03 +01:00
Dan
a2263ad8ce
Make send_media_group return the new Messages object
2019-02-05 11:50:32 +01:00
Dan
7f79210ba3
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/dispatcher/dispatcher.py
# requirements.txt
2019-01-02 19:55:45 +01:00
Dan
4d7b1bafac
Update copyright year
2019-01-01 12:36:16 +01:00
Dan
06d8293fa0
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/__init__.py
# pyrogram/client/client.py
# pyrogram/client/methods/bots/send_inline_bot_result.py
# pyrogram/client/methods/chats/pin_chat_message.py
# pyrogram/client/methods/chats/unpin_chat_message.py
# pyrogram/client/methods/password/change_cloud_password.py
# pyrogram/client/methods/password/enable_cloud_password.py
# pyrogram/client/methods/password/remove_cloud_password.py
2018-12-25 23:07:45 +01:00
Dan
84fef9ecf1
Add missing file_reference argument where applicable
2018-12-23 00:55:00 +01:00
Dan
e6667be10b
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/client.py
# pyrogram/client/dispatcher/dispatcher.py
# pyrogram/client/ext/utils.py
# pyrogram/client/methods/bots/get_inline_bot_results.py
# pyrogram/client/methods/bots/request_callback_answer.py
# pyrogram/client/methods/bots/send_inline_bot_result.py
# pyrogram/client/methods/chats/delete_chat_photo.py
# pyrogram/client/methods/chats/export_chat_invite_link.py
# pyrogram/client/methods/chats/get_chat.py
# pyrogram/client/methods/chats/get_chat_member.py
# pyrogram/client/methods/chats/get_chat_members.py
# pyrogram/client/methods/chats/get_chat_members_count.py
# pyrogram/client/methods/chats/get_dialogs.py
# pyrogram/client/methods/chats/join_chat.py
# pyrogram/client/methods/chats/kick_chat_member.py
# pyrogram/client/methods/chats/leave_chat.py
# pyrogram/client/methods/chats/pin_chat_message.py
# pyrogram/client/methods/chats/promote_chat_member.py
# pyrogram/client/methods/chats/restrict_chat_member.py
# pyrogram/client/methods/chats/set_chat_description.py
# pyrogram/client/methods/chats/set_chat_photo.py
# pyrogram/client/methods/chats/set_chat_title.py
# pyrogram/client/methods/chats/unban_chat_member.py
# pyrogram/client/methods/chats/unpin_chat_message.py
# pyrogram/client/methods/contacts/add_contacts.py
# pyrogram/client/methods/contacts/delete_contacts.py
# pyrogram/client/methods/messages/delete_messages.py
# pyrogram/client/methods/messages/edit_message_caption.py
# pyrogram/client/methods/messages/edit_message_media.py
# pyrogram/client/methods/messages/edit_message_reply_markup.py
# pyrogram/client/methods/messages/edit_message_text.py
# pyrogram/client/methods/messages/forward_messages.py
# pyrogram/client/methods/messages/get_history.py
# pyrogram/client/methods/messages/get_messages.py
# pyrogram/client/methods/messages/send_animation.py
# pyrogram/client/methods/messages/send_audio.py
# pyrogram/client/methods/messages/send_chat_action.py
# pyrogram/client/methods/messages/send_contact.py
# pyrogram/client/methods/messages/send_document.py
# pyrogram/client/methods/messages/send_location.py
# pyrogram/client/methods/messages/send_media_group.py
# pyrogram/client/methods/messages/send_message.py
# pyrogram/client/methods/messages/send_photo.py
# pyrogram/client/methods/messages/send_sticker.py
# pyrogram/client/methods/messages/send_venue.py
# pyrogram/client/methods/messages/send_video.py
# pyrogram/client/methods/messages/send_video_note.py
# pyrogram/client/methods/messages/send_voice.py
# pyrogram/client/methods/password/change_cloud_password.py
# pyrogram/client/methods/password/enable_cloud_password.py
# pyrogram/client/methods/password/remove_cloud_password.py
# pyrogram/client/methods/users/delete_user_profile_photos.py
# pyrogram/client/methods/users/get_me.py
# pyrogram/client/methods/users/get_user_profile_photos.py
# pyrogram/client/methods/users/get_users.py
# pyrogram/client/methods/utilities/download_media.py
# pyrogram/client/types/messages_and_media/message.py
2018-12-22 12:23:08 +01:00
Dan
b593463bd7
Type hint all the remaining method parameters
2018-12-19 14:50:23 +01:00
Dan
976eae63ed
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/client.py
# pyrogram/client/methods/messages/send_media_group.py
# pyrogram/client/methods/utilities/download_media.py
2018-12-15 11:12:30 +01:00
Dan
49b18c600d
Add missing thumb for videos in albums. Fixes #169
2018-12-15 08:39:43 +01:00
Dan
3f7b0b25af
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/client.py
# pyrogram/client/methods/chats/get_chat_members.py
# pyrogram/client/methods/chats/get_dialogs.py
# pyrogram/client/methods/messages/send_animation.py
# pyrogram/client/methods/messages/send_venue.py
2018-08-22 10:30:25 +02:00
Dan
32468e5ab0
Remove hints about using t.me/joinchat/ links as chat ids
...
Such links don't work reliably with the current implementation
2018-07-27 00:40:08 +02:00
Dan
811e67c229
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/types/message.py
2018-06-23 14:30:27 +02:00
Dan
8074ef1368
Make methods directory structure simple
2018-06-23 10:34:20 +02:00