Commit graph

412 commits

Author SHA1 Message Date
wulan17
e0e5bdb2cd
pyrofork: Update send_invoice doc
also add support for non-iterable prices

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-03 01:25:37 +07:00
wulan17
ee8c19d3f4
pyrofork: Add delete_scheduled_messages method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:56:51 +07:00
wulan17
b081928452
pyrofork: Add get_scheduled_messages method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:56:45 +07:00
wulan17
e97f441a41
pyrofork: Move some methods and types to business category
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:48:39 +07:00
wulan17
56621a6f4d
pyrofork: Add get_stars_transaction_by_id method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:48:39 +07:00
wulan17
c880277a4e
pyrofork: Add get_stars_transaction method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:48:38 +07:00
wulan17
5a9c11934a
pyrofork: fix send_invoice examples
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:48:38 +07:00
shriMADhav U k
9669d62562
pyrofork: Add create_invoice_link
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:48:38 +07:00
shriMADhav U k
7c81723649
pyrofork: Add get_active_sessions
Stealing IDEA from hydrogram/hydrogram#41

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:48:37 +07:00
wulan17
9dbd784e7c
pyrofork: fix get_stories doc
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:48:37 +07:00
wulan17
d906970d99
pyrofork: Add join_requests_count field to class Chat
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:48:37 +07:00
wulan17
f1e2b493b6
pyrofork: Add join_request parameter to get_chat_members_count
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:48:37 +07:00
wulan17
116a353477
pyrofork: Add missing parameters
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-02 19:48:36 +07:00
wulan17
30f5ae2994
pyrofork: Add recent_voters field to Poll
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-23 23:47:30 +07:00
wulan17
4bbbd5c460
pyrofork: Remove state when leaving chat
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-23 23:47:30 +07:00
wulan17
869965acf3
pyrofork: Refactor business_connection
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-15 16:58:06 +07:00
wulan17
e999da461d
pyrofork: Add missings business_connection_id
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-14 20:29:23 +07:00
wulan17
61398bc5a4
Revert "Add business_connection_id parameter in"
This reverts commit 4d6fb409b8.

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-14 20:29:23 +07:00
shriMADhav U k
48e8d0c4a1
Add get_business_connection to get information about the BusinessConnection
Co-authored-by: wulan17 <wulan17@nusantararom.org>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-14 20:29:23 +07:00
S!R X
4795bdbd5b
Fix a bug with get_session
* Fix a bug

InputBotInlineMessageID's dc_id being the same with Client's dc_id.

---------
https://github.com/KurimuzonAkuma/pyrogram/pull/76

Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-13 15:27:57 +07:00
wulan17
5130e0a2e5
pyrofork: Add payload parameter to send_invoice
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-07 21:52:08 +07:00
wulan17
43809a91b1
pyrofork: Add refund_star_payment method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-06 15:53:10 +07:00
RabbitFoRed
48cf8bcb23
pyrofork: method: send_invoice: Message._parse is coroutine
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-06 15:53:10 +07:00
wulan17
83543da3e6
pyrofork: Update documentation for send_invoice and LabeledPrice
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-06 15:53:10 +07:00
wulan17
c8d2c6a152
pyrofork: Add reply_markup parameter to Client.send_invoice
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-06 14:31:16 +07:00
wulan17
47ede16039
pyrofork: Update send_poll example
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-02 15:45:47 +07:00
wulan17
240d3bfde5
pyrofork: remove entities parameter in send_paid_media docs
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-01 20:41:24 +07:00
wulan17
d2dd55864c
pyrofork: Add example to send_paid_media method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-01 20:11:56 +07:00
KurimuzonAkuma
2e263190a2
pyrofork: Add folders 2024-07-01 20:11:56 +07:00
wulan17
4ae45da1ec
pyrofork: Add send_paid_media method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-01 20:11:55 +07:00
wulan17
adf5ad50d1
pyrofork: fix derps
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-01 20:11:50 +07:00
shriMADhav U k
3a41a51359
Added support for InputMessageContent classes, according to BOT API.
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-23 16:59:33 +07:00
shriMADhav U k
0387a09079
Add ShippingQuery and answer_shipping_query
Add on_shipping_query updates.
Also, fix spelling mistakes in previous commits.

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-23 16:59:32 +07:00
shriMADhav U k
4d6fb409b8
Add business_connection_id parameter in
edit_message_caption
edit_message_media
edit_message_reply_markup
edit_message_text
stop_poll

Message.edit_text
Message.edit_media
Message.edit_reply_markup
CallbackQuery.edit_message_text
CallbackQuery.edit_message_media
CallbackQuery.edit_message_reply_markup
Poll.stop

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-23 16:59:32 +07:00
wulan17
ca6870502e
pyrofork: fix NoneType errors in promote_chat_member
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-23 16:59:28 +07:00
wulan17
c4ec16b742
pyrofork: Add send_invoice method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-15 16:26:10 +07:00
wulan17
d863655769
pyrofork: Fix IndexError error in Client.get_stories
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-15 16:26:10 +07:00
shriMADhav U k
30272728be
Add Hashtag Search methods
search_global_hashtag_messages
search_global_hashtag_messages_count

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-15 16:26:09 +07:00
xiaocai
d162ee1542 Docs Fix 2024-06-13 15:44:28 +08:00
xiaocai
ed6dad7426 feat: Can set admin title when promote a chat member. 2024-06-13 15:43:35 +08:00
wulan17
7328ccdf7c
pyrofork: Implement entities in Poll question and options
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:51:32 +07:00
Zaid _
fac571aff9
pyrofork: Add get_collectible_item_info
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:49:57 +07:00
wulan17
ebbd5dd0bb
pyrofork: Add invert_media parameter to edit_message method and Message.edit_text bound method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:49:57 +07:00
wulan17
b97407edab
pyrofork: add invert_media parameter to copy_message,edit_message_caption,edit_message_media,send_{animation,cached_media,media_group,photo,video} methods
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:49:57 +07:00
coglione
4cec859126
pyrofork: Add high level support for pre-checkout queries and service messages for successful payments
* Add high level support for pre-checkout queries

* Add high level support for incoming payments

* Update and fix documentation

---------

Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:41:02 +07:00
KurimuzonAkuma
8b52f1f71d
pyrofork: Add get_available_effects method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:39:02 +07:00
KurimuzonAkuma
ef002e0416
pyrofork: Add support for clicking web app and user profile buttons
Co-authored-by: Shrimadhav U K <SpEcHiDe@users.noreply.github.com>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:38:02 +07:00
KurimuzonAkuma
ed6403db3c
pyrofork: Add view_once parameter to send_photo
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:38:02 +07:00
shriMADhav U k
f84e1f6a5e
pyrofork: add ability to specify our own interactions in send_chat_action
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:38:01 +07:00
shriMADhav U k
8ea36645c0
pyrofork: Add revoke_messages to ban_chat_member
pyrogram/pyrogram#1421

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:35:35 +07:00
shriMADhav U k
f684ce9563
pyrofork: Add message_effect_id to send* methods
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:35:35 +07:00
shriMADhav U k
e414aa2812
pyrofork: Handle FLOOD_PREMIUM_WAIT
Squashed commit of the following:

commit 546b603
commit 0ac858d
commit c8a9725

Ref: https://t.me/swiftgram/72
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:34:47 +07:00
shriMADhav U k
21de92d909
pyrofork: Support for Chat Video Type
Add has_animation, is_personal, minithumbnail to ChatPhoto
Change return type of get_chat_photos

Inspiration from KurimuzonAkuma/pyrogram#60 but MVB_#1333

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:34:47 +07:00
wulan17
622616b38d
pyrofork: remove animated, emojis, and videos parameters from create_sticker_pack method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:34:46 +07:00
shriMADhav U k
eae031f79a
pyrofork: Add trigger and watch emoji animations in send_chat_action and reply_chat_action
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:34:46 +07:00
wulan17
9a50847108
Pyrofork: methods: send_media_group: Remove extras comma (,)
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-04-08 21:28:52 +07:00
XiaoCai
fd0a23a528
docs(update_birthday): Fix error in examples 2024-04-08 00:50:11 +08:00
wulan17
fa0376c458
Pyrofork: Add update_personal_chat method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-04-06 21:56:08 +07:00
wulan17
8ca9045ebc
Pyrofork: Add update_birthday method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-04-06 21:56:08 +07:00
wulan17
52b23f2a19
Pyrofork: Add UpdateBotBusinessConnect handler
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-04-06 21:56:08 +07:00
wulan17
cc91ee9f44
Pyrofork: Add edited and deleted bot business message(s) handler
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-04-06 21:56:08 +07:00
wulan17
7ddd53f61b
Pyrofork: Add business_connection_id parameter to send_{animation,audio,chat_action,contact,dice,document,game,location,media_group,message,photo,poll,sticker,venue,video,video_note,voice,web_page}
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-04-06 21:56:08 +07:00
wulan17
48fed9347a
Pyrofork: Add UpdateBotNewBusinessMessage updates handler
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-04-06 21:56:08 +07:00
XiaoCai
0e1f7ad712
docs(get_custom_emoji_stickers): Fix errors in documentation 2024-03-24 14:15:05 +08:00
1f9d17fd19
Merge pull request #54 from X1A0CA1/main
Update API Layer and fix a bug
2024-03-23 18:40:47 +07:00
XiaoCai
6140e2a8b8
feat(get_custom_emoji_stickers): Supports passing Int and List parameter 2024-03-19 15:17:30 +08:00
XiaoCai
43fb830382
Fix AttributeError when calling add_sticker_to_set method. 2024-03-18 22:27:13 +08:00
Tomi Prasetio
dfc027c2ff
Refactor: Use io module for seek operation in worker function 2024-03-17 11:08:58 +07:00
XiaoCai
18289f96b5
fix: Fix AttributeError when calling get_send_as_chats() 2024-03-01 16:11:24 +08:00
wulan17
3049e6e63b
Pyrofork: Fix NoneType error when sending video as media group
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-02-29 21:42:24 +07:00
wulan17
ce46d49ec2
Pyrofork: Add OSError Exception handling to send_media_group
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-02-29 21:42:23 +07:00
KurimuzonAkuma
13d8b10deb
Pyrofork: Add support for self-destructing video notes
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-02-07 20:35:43 +07:00
wulan17
1b3f0933c7
Pyrofork: Update Copyright headers
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-02-07 20:25:08 +07:00
wulan17
68ca84599f
Pyrofork: fix restrict_chat_member method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-30 18:50:51 +07:00
Yasir Aris M
4c11bcdc7f
Pyrofork: Message Reaction Update (#43)
* Pyrofork: Message Reaction Update

---------

Signed-off-by: Yasir Aris M <yasiramunandar@gmail.com>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Co-authored-by: shriMADhav U k <hetzner@shrimadhavuk.me>
Co-authored-by: Yasir Aris M <yasiramunandar@gmail.com>
Co-authored-by: wulan17 <wulan17@nusantararom.org>
2024-01-22 23:26:09 +07:00
wulan17
bc17bb6218
Pyrofork: Update set_slow_mode usable-by
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-15 22:24:54 +07:00
wulan17
08f0214252
Pyrofork: Update set_chat_protected_content usable-by
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-15 22:21:45 +07:00
wulan17
a95c1b6ac1
Pyrofork: Add ChannelPrivate exception handler to get_dialogs method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-12 00:26:44 +07:00
wulan17
f2b6182584
Pyrofork: Move duplicated codes to separate method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-12 00:26:44 +07:00
wulan17
41e13454e7
Pyrofork: remove animation from send_story ValueError
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-12 00:26:44 +07:00
wulan17
f1b4d1ca49
Pyrofork: Refactor send_story method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-04 19:50:17 +07:00
wulan17
48c7a5e2f9
Pyrofork: Add support for t.me/<username> link in resolve_peer method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-04 19:50:17 +07:00
wulan17
e9f3677908
Pyrofork: Add support for username in reply_in_chat_id and stories chat_id
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-04 19:50:16 +07:00
wulan17
621a07bb8c
Pyrofork: Add invert_media parameter to send_message and Message.reply_text
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-02 02:18:34 +07:00
wulan17
1340d4f729
Pyrofork: Update send_reaction usable-by
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-31 17:43:35 +07:00
wulan17
3fee62dd1d
Pyrofork: Add can_{post,edit,delete}_stories parameter to ChatPrivileges and promote_chat_member 2023-12-31 17:43:34 +07:00
wulan17
29ae15e660
Pyrofork: Add Story support for download_media method and Add Story.download bound method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-31 17:43:34 +07:00
wulan17
c8b2a3adca
Pyrofork: Add quote_entities parameter to send_{*} methods and Message.reply_{*} bound methods
also add missing parameters to InputReplyToMessage docs

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-31 17:43:34 +07:00
wulan17
cd0473c6af
Pyrofork: Move reply_to to pyrogram.utils
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-31 17:43:34 +07:00
wulan17
0b5cc55768
Pyrofork: fix send_story method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-25 19:05:46 +07:00
wulan17
4c0b3e4090
Pyrofork: Refactor Story
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-25 18:45:49 +07:00
wulan17
b85382706d
Pyrofork: Add media_areas parameter to {send,edit}_story methods
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-25 17:08:54 +07:00
KurimuzonAkuma
2543c0f9f4
Add reply color, profile color and some known error, and add support multiple reaction
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-24 14:53:53 +07:00
Yasir Aris M
1329d2ec87
[PyroFork] Add update_color method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-24 14:53:53 +07:00
Yasir Aris M
83f39f6ac3
[PyroFork] Fix Some Pyromod Method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-24 14:53:49 +07:00
wulan17
1906bc2939
Pyrofork: Fix docs
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-14 13:29:29 +07:00
wulan17
b36a46efc0
Pyrofork: Move ListenerTypes to pyrogram.enums
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-13 12:09:40 +07:00
wulan17
d6e0a4f520
Pyrofork: Add pyromod documentation
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-13 12:09:40 +07:00
wulan17
7a7225b08f
Pyrofork: Move pyromod's client bound methods to its own class
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-13 12:09:40 +07:00
Ashok Bishnoi
45cabf3c09
Pyrofork: Add protect_content parameter to copy_media_group method #36 2023-12-12 20:32:36 +07:00