Commit graph

151 commits

Author SHA1 Message Date
Dan
6fa4cdff15 Fix user mentions for deleted accounts 2022-04-24 11:56:07 +02:00
Dan
124bcb4db7 Remove API key requirement for existing sessions 2022-04-24 11:56:07 +02:00
Dan
1e66ac2636 Small documentation fix 2022-04-24 11:56:07 +02:00
Dan
b47591e6d2 Turn examples asynchronous 2022-04-24 11:56:07 +02:00
Dan
84f0b3a97a Rename some enums 2022-04-24 11:56:07 +02:00
Dan
5f2dcf70ed Fix invited_by being optional 2022-04-24 11:56:07 +02:00
Dan
78efb04b40 Rename Client.send to Client.invoke 2022-04-24 11:56:07 +02:00
Dan
32624ef5e6 Improve type hints 2022-04-24 11:56:06 +02:00
Dan
4ebf5cf7e9 Remove ability to access attributes via bracket notation 2022-04-24 11:56:06 +02:00
Dan
274650cda9 Rename Message.message_id to Message.id 2022-04-24 11:56:06 +02:00
Dan
b697826b5a Replace integer timestamps with datetime objects 2022-04-24 11:56:06 +02:00
Dan
bbad58a83f Add enumerations 2022-04-24 11:56:06 +02:00
Dan
9661b804b6 Revamp ChatMember, add ChatPrivileges and support for banned chats 2022-04-24 11:56:06 +02:00
Stark Programmer
abc84b829a
Add bound method Chat.unpin_all_messages (#959) 2022-04-16 18:33:26 +02:00
Tofik Denianto
874709c258
Remove hide_via param from reply_inline_bot_result (#952) 2022-04-11 23:52:32 +02:00
Krishna-singhal
0825b977ea
Add bound method Message.react (#937)
* Bound method `react` to send reaction

* Update message.py

* Update message.py

* Update compiler.py

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-03-28 21:03:37 +02:00
Dan
7bfcd5ac5f Revamp bot commands and bot command scopes
Closes #777
2022-03-28 13:23:12 +02:00
Andrea Maugeri
aa41ac5fd2
Fix issue in set_bot_commands (#778) 2022-03-28 11:48:15 +02:00
Dan
8ee5ea02b1 Update pin_chat_message to return Message instead of bool 2022-03-19 20:57:17 +01:00
Mr. Developer
5ee6f3d2c7
Add some missing parameters to Message.reply_text 2022-03-07 13:13:22 +01:00
scrazzz
4dc771b64a
Fix docstring for message.reply_photo (#903) 2022-02-26 11:13:52 +01:00
Dan
bca7e6461e Add reply_to_message_id and reply_to_top_message_id to Message 2022-02-17 11:41:14 +01:00
Dan
05bfaa3d87 Add support for video stickers
Add Sticker.is_video attribute
2022-02-01 11:38:58 +01:00
Dan
b1250e6575 Fix accessing non-existent attribute
Closes #865
2022-01-29 13:02:32 +01:00
Mahesh
149685f9d3
Add placeholder in ForceReply & ReplyKeyboardMarkup (#717)
* Added placeholder

* Fix docs
2022-01-29 11:54:00 +01:00
W4RR10R
244606eed6
Add approve() and decline() bound methods to ChatJoinRequest (#863)
* Bound method approve() and decline()

* Style fixes

Co-authored-by: ArUn Pt <46273006+CW4RR10R@users.noreply.github.com>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-01-29 11:36:15 +01:00
Dan
cb6cef37e6 Update copyright year 2022-01-07 12:21:24 +01:00
Dan
626a1bd938 Update copyright year 2022-01-07 10:23:45 +01:00
Dan
8c8288412f Various improvements 2022-01-07 10:18:51 +01:00
Dan
80d0966691 Merge branch 'set-chat-protected-content' 2022-01-07 09:51:47 +01:00
Dan
ac3d2b8d7a Rename methods and add proper docs 2022-01-05 12:50:44 +01:00
Fernando Werneck
b283bce262
Add No Forwards chat option (#839)
* Add No Forwards chat option

* Fix chat.py
2022-01-05 12:37:25 +01:00
Dan
0a29890da4 Merge branch 'layer-136' 2022-01-03 11:19:15 +01:00
Dan
f6625192d0 Add parameter protect_content to send_* methods 2022-01-03 11:12:24 +01:00
Dan
fb64e143b6 Add field Message.reactions 2021-12-30 13:46:44 +01:00
Dan
2799011c07 Add type Reaction 2021-12-30 13:46:07 +01:00
Dan
b0a9d28bda Add field Chat.available_reactions 2021-12-30 13:43:44 +01:00
SUBIN
00c91120d8
Handle the case when default_send_as is None (#842)
* fix parsing send_as peer.

* Update chat.py

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-12-30 11:06:37 +01:00
Dan
f7b9137a68 Add support for "spoiler" MessageEntity 2021-12-30 09:14:49 +01:00
Dan
9c67084170 Merge remote-tracking branch 'origin/master' 2021-12-24 16:29:35 +01:00
Udith Amasura
cc4a850134
Make bot_username optional for LoginUrl (#817)
* make bot username optional

* Update login_url.py

* Update login_url.py

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-12-23 17:56:22 +01:00
Dan
9a2bc25bc7 Add support for "send_as" chats
- Add methods get_send_as_chats() and set_send_as_chat()
- Add field Chat.send_as_chat
2021-12-23 16:53:03 +01:00
Dan
a138b46668 Add Message/Chat.has_protected_content 2021-12-22 14:49:28 +01:00
Dan
2024b3c120 Rename kick(ed) occurrences to ban(ned) 2021-12-22 14:39:52 +01:00
Dan
a909dc12e7 Add support for user profile buttons 2021-12-22 14:36:02 +01:00
Dan
d103ae48fe Add support for ChatJoinRequest events 2021-12-22 14:34:12 +01:00
Dan
8f8c85e8f3 Update ChatInviteLink 2021-12-22 14:13:44 +01:00
Dan
9b28a120e2 Fix megagroup attribute on ChatForbidden objects 2021-12-17 11:49:53 +01:00
Dan
bf9e186414 Also fetch peer_id user details 2021-12-09 20:12:13 +01:00
Dan
a73f990667 Improve parsing of Chat 2021-12-08 07:46:41 +01:00