ronami_core/payloads/send_sticker.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{
6 BusinessConnectionId, EffectId, InputFile, Message, Recipient, ReplyMarkup, ReplyParameters,
7 SuggestedPostParameters, ThreadId, TopicId,
8};
9
10impl_payload! {
11 @[multipart = sticker]
12 /// Use this method to send static .WEBP, .TGS or .WEBM stickers. On success, the sent Message is returned.
13 ///
14 /// [animated]: https://telegram.org/blog/animated-stickers
15 #[derive(Debug, Clone, Serialize)]
16 pub SendSticker (SendStickerSetters) => Message {
17 required {
18 /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`).
19 pub chat_id: Recipient [into],
20 /// Sticker to send. Pass a file_id as FileId to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. [More info on Sending Files »]
21 ///
22 /// [More info on Sending Files »]: crate::types::InputFile
23 pub sticker: InputFile,
24 }
25 optional {
26 /// Unique identifier of the business connection on behalf of which the message will be sent
27 pub business_connection_id: BusinessConnectionId,
28 /// Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
29 pub message_thread_id: ThreadId,
30 /// Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
31 pub direct_messages_topic_id: TopicId,
32 /// Emoji associated with the sticker; only for just uploaded stickers
33 pub emoji: String [into],
34 /// Sends the message [silently]. Users will receive a notification with no sound.
35 ///
36 /// [silently]: https://telegram.org/blog/channels-2-0#silent-messages
37 pub disable_notification: bool,
38 /// Protects the contents of sent messages from forwarding and saving
39 pub protect_content: bool,
40 /// Pass `true` to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
41 pub allow_paid_broadcast: bool,
42 /// Unique identifier of the message effect to be added to the message; for private chats only
43 pub message_effect_id: EffectId,
44 /// An object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
45 pub suggested_post_parameters: SuggestedPostParameters,
46 /// Description of the message to reply to
47 pub reply_parameters: ReplyParameters,
48 /// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account.
49 ///
50 /// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
51 /// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
52 pub reply_markup: ReplyMarkup [into],
53 }
54 }
55}