Add SendGift method to send gifts to users
This commit is contained in:
parent
939c736e1e
commit
8aac6544a6
3 changed files with 71 additions and 0 deletions
|
@ -171,6 +171,7 @@
|
|||
* @method true setCustomEmojiStickerSetThumbnail(string $name, ?string $custom_emoji_id=null) Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success.
|
||||
* @method true deleteStickerSet(string $name) Use this method to delete a sticker set that was created by the bot. Returns True on success.
|
||||
* @method Gifts getAvailableGifts() Returns the list of gifts that can be sent by the bot to users. Requires no parameters. Returns a Gifts object.
|
||||
* @method true sendGift(int $user_id, string $gift_id, ?string $text=null, ?ParseMode $text_parse_mode=null, MessageEntity[]|null $text_entities=null) Sends a gift to the given user. The gift can't be converted to Telegram Stars by the user. Returns True on success.
|
||||
* @throws TelegramException if the method execution fails.
|
||||
*/
|
||||
class Bot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue