mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
feat: allow sending invoices to group, supergroup and channel
This commit is contained in:
parent
ddf5a66cb7
commit
9a90f6c33a
1 changed files with 5 additions and 3 deletions
|
|
@ -2798,7 +2798,7 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin):
|
|||
# https://core.telegram.org/bots/api#payments
|
||||
|
||||
async def send_invoice(self,
|
||||
chat_id: base.Integer,
|
||||
chat_id: typing.Union[base.Integer, base.String],
|
||||
title: base.String,
|
||||
description: base.String,
|
||||
payload: base.String,
|
||||
|
|
@ -2832,8 +2832,10 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin):
|
|||
|
||||
Source: https://core.telegram.org/bots/api#sendinvoice
|
||||
|
||||
:param chat_id: Unique identifier for the target private chat
|
||||
:type chat_id: :obj:`base.Integer`
|
||||
:param chat_id: Unique identifier for the target chat or
|
||||
username of the target channel (in the format
|
||||
@channelusername)
|
||||
:type chat_id: :obj:`typing.Union[base.Integer, base.String]`
|
||||
|
||||
:param title: Product name, 1-32 characters
|
||||
:type title: :obj:`base.String`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue