sendSticker method

Future<Message> sendSticker(
  1. ChatID chatId,
  2. HttpFile sticker, {
  3. bool? disableNotification,
  4. bool? protectContent,
  5. int? replyToMessageId,
  6. bool? allowSendingWithoutReply,
  7. ReplyMarkup? replyMarkup,
})
inherited

Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers.

On success, the sent Message is returned.

Implementation

Future<Message> sendSticker(
  ChatID chatId,
  HttpFile sticker, {
  bool? disableNotification,
  bool? protectContent,
  int? replyToMessageId,
  bool? allowSendingWithoutReply,
  ReplyMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'sendSticker', {
    'chat_id': chatId,
    'sticker': sticker,
    'disable_notification': disableNotification,
    'protect_content': protectContent,
    'reply_to_message_id': replyToMessageId,
    'allow_sending_without_reply': allowSendingWithoutReply,
    'reply_markup': replyMarkup,
  });
}