Skip to content

Releases: tg-rs/tgbot

0.31.0

01 Nov 08:04
cab7209
Compare
Choose a tag to compare

Dependencies

  • bytes 1.8
  • tokio 1.41

Bot API

7.11

  • Added enum variants:
    • InlineKeyboardButtonType: CopyText.
    • TransactionPartner: TelegramApi.
  • Added methods:
    • CopyMessage: allow_paid_broadcast.
    • InlineKeyboardButton: for_copy_text.
    • SendAnimation: allow_paid_broadcast.
    • SendAudio: allow_paid_broadcast.
    • SendContact: allow_paid_broadcast.
    • SendDice: allow_paid_broadcast.
    • SendDocument: allow_paid_broadcast.
    • SendInvoice: allow_paid_broadcast.
    • SendPhoto: allow_paid_broadcast.
    • SendVoice: allow_paid_broadcast.
    • SendGame: allow_paid_broadcast.
    • SendLocation: allow_paid_broadcast.
    • SendMediaGroup: allow_paid_broadcast.
    • SendMessage: allow_paid_broadcast.
    • SendPaidMedia: allow_paid_broadcast.
    • SendPoll: allow_paid_broadcast.
    • SendQuiz: allow_paid_broadcast.
    • SendSticker: allow_paid_broadcast.
    • SendVideo: allow_paid_broadcast.
    • SendVideoNote: allow_paid_broadcast.
    • SendVenue: allow_paid_broadcast.

0.30.0

07 Sep 16:32
8fe79fe
Compare
Choose a tag to compare

Dependencies

  • tokio 1.40

Bot API

7.10

  • Added fields:
    • ChatBoostSourceGiveaway: prize_star_count.
    • Giveaway: prize_star_count.
    • GiveawayCompleted: is_star_giveaway.
    • GiveawayWinners: prize_star_count.
    • TransactionPartner::User: paid_media_payload.
  • Added methods:
    • ChatBoostSourceGiveaway: with_prize_star_count.
    • Giveaway: with_prize_star_count.
    • GiveawayCompleted: with_is_star_giveaway.
    • GiveawayWinners: with_prize_star_count.
    • SendPaidMedia: with_payload.
  • Added types:
    • GiveawayCreated.
    • PaidMediaPurchased.
  • Added enum variants:
    • AllowedUpdate: PurchasedPaidMedia.
    • UpdateType: PurchasedPaidMedia.
  • Changed enum variants:
    • MessageData: GiveawayCreated to GiveawayCreated(GiveawayCreated).

0.29.0

18 Aug 13:34
f90f5f8
Compare
Choose a tag to compare

Dependencies

  • derive_more 1.0

Bot API

7.9

  • Added fields:
    • TransactionPartner::User: paid_media.
  • Added methods:
    • SendPaidMedia: with_business_connection_id.
  • Added types:
    • CreateChatSubscriptionInviteLink.
    • EditChatSubscriptionInviteLink.
  • Added enum variants:
    • ReactionType::Paid.
  • Changed enum variants:
    • ChatMember::Member: Member { user: User, until_date: Option<Integer> }.

0.28.0

31 Jul 17:03
eea2c96
Compare
Choose a tag to compare

Dependencies

  • Updated tokio version to 1.39.
  • Updated bytes version to 1.7.

Bot API

7.8

  • Added fields:
    • Bot: has_main_web_app.
  • Added methods:
    • PinChatMessage: with_business_connection_id.
    • UnpinChatMessage: with_business_connection_id.

0.27.0

07 Jul 17:41
5c09a9c
Compare
Choose a tag to compare

Bot API

7.7

  • Added types: RefundedPayment.
  • Added enum variants: MessageData::RefundedPayment.

0.26.0

02 Jul 08:04
91d5baf
Compare
Choose a tag to compare

Bot API

7.6

  • Added types: InputPaidMediaGroup, InputPaidMediaGroupError, InputPaidMediaGroupItem, InputPaidMediaVideo,
    PaidMedia, PaidMediaInfo, PaidMediaPreview, SendPaidMedia.
  • Added enum variants: ExternalReplyData::PaidMedia, MessageData::PaidMedia, TransactionPartner::TelegramAds.
  • Added fields:
    • ChatFullInfo: can_send_paid_media.
  • Changed enum variants:
    • TransactionPartner: User(User) to User { user: User, invoice_payload: Option<String> }.

0.25.0

18 Jun 15:29
7e4172a
Compare
Choose a tag to compare

Dependencies

  • Updated tokio version to 1.38.

Bot API

7.5

  • Added types: GetStarTransactions, RevenueWithdrawalState, StarTransaction, StarTransactions, TransactionPartner.
  • Added methods:
    • EditMessageCaption: with_business_connection_id.
    • EditMessageLiveLocation: with_business_connection_id.
    • EditMessageMedia: with_business_connection_id.
    • EditMessageReplyMarkup: with_business_connection_id.
    • EditMessageText: with_business_connection_id.
    • StopMessageLiveLocation: with_business_connection_id.
    • StopPoll: with_business_connection_id.

0.24.0

29 May 13:32
feff8a4
Compare
Choose a tag to compare

Bot API

7.4

  • Added types:
    • RefundStarPayment.
  • Added enum variants:
    TextEntity::ExpandableBlockQuote.
  • Added fields:
    • InvoiceParameters: provider_token.
    • Message: effect_id, show_caption_above_media.
  • Added methods:
    • CopyMessage: with_show_caption_above_media.
    • EditMessageCaption: with_show_caption_above_media.
    • InlineQueryResultGif: with_show_caption_above_media.
    • InlineQueryResultMpeg4Gif: with_show_caption_above_media.
    • InlineQueryResultPhoto: with_show_caption_above_media.
    • InlineQueryResultVideo: with_show_caption_above_media.
    • InlineQueryResultCachedGif: with_show_caption_above_media.
    • InlineQueryResultCachedMpeg4Gif: with_show_caption_above_media.
    • InlineQueryResultCachedPhoto: with_show_caption_above_media.
    • InlineQueryResultCachedVideo: with_show_caption_above_media.
    • InputMediaAnimation: with_show_caption_above_media.
    • InputMediaPhoto: with_show_caption_above_media.
    • InputMediaVideo: with_show_caption_above_media.
    • InputMessageContentInvoice: with_provider_token.
    • InvoiceParameters: with_provider_token.
    • Message: with_effect_id, with_show_caption_above_media.
    • SendAnimation: with_message_effect_id, with_show_caption_above_media.
    • SendAudio: with_message_effect_id.
    • SendContact: with_message_effect_id.
    • SendDice: with_message_effect_id.
    • SendDocument: with_message_effect_id.
    • SendGame: with_message_effect_id.
    • SendInvoice: with_message_effect_id.
    • SendLocation: with_message_effect_id.
    • SendMediaGroup: with_message_effect_id.
    • SendMessage: with_message_effect_id.
    • SendPhoto: with_message_effect_id, with_show_caption_above_media.
    • SendPoll: with_message_effect_id.
    • SendSticker: with_message_effect_id.
    • SendVenue: with_message_effect_id.
    • SendVideo: with_message_effect_id, with_show_caption_above_media.
    • SendVideoNote: with_message_effect_id.
    • SendVoice: with_message_effect_id.
    • TextEntity: expandable_blockquote.
  • Changed signature:
    • CreateInvoiceLink::new to (title: Into<String>, description: Into<String>, payload: Into<String>, currency: Into<String>, prices: IntoIterator<Item=LabeledPrice>).
    • SendInvoice::new to (chat_id: Into<ChatId>, title: Into<String>, description: Into<String>, payload: Into<String>, currency: Into<String>, prices: IntoIterator<Item=LabeledPrice>).
    • InputMessageContentInvoice::new to (currency: Into<String>, description: Into<String>, payload: Into<String>, prices: IntoIterator<Item=LabeledPrice>, title: Into<String>).

0.23.0

07 May 19:53
65ad4eb
Compare
Choose a tag to compare

Bot API

7.3

  • Added types: BackgroundFill, BackgroundType, ChatBackground, ChatFullInfo, ChatFullInfoType, InputPollOption.
  • Added enum variatns: MessageData::ChatBackgroundSet.
  • Added fields:
    • ChatMemberUpdated: via_join_request.
  • Added methods:
    • ChatMemberUpdated: with_via_join_request.
    • EditMessageLiveLocation: with_live_period.
    • SendPoll: with_question_entities, with_question_parse_mode.
    • SendQuiz: with_question_entities, with_question_parse_mode.
  • Changed fields:
    • RegularPoll: question from String to Text.
    • Quiz: question from String to Text.
    • PollOption: text from String to Text.
  • Changed signature:
    • SendPoll::new: options from IntoIterator<Item=Into<String>> to IntoIterator<Item=Into<InputPollOption>>.
    • SendQuiz::new: options from IntoIterator<Item=Into<String>> to IntoIterator<Item=Into<InputPollOption>>.
  • Changed return type:
    • GetChat: from Chat to ChatFullInfo.
  • Removed methods:
    • ChannelChat: accent_color, active_usernames, available_reactions, background_custom_emoji_id,
      description, emoji_status_custom_emoji_id, emoji_status_expiration_date, has_protected_content,
      invite_link, linked_chat_id, message_auto_delete_time, photo, pinned_message, profile_accent_color,
      profile_background_custom_emoji_id.
    • GroupChat: accent_color, available_reactions, background_custom_emoji_id, emoji_status_custom_emoji_id,
      emoji_status_expiration_date, has_hidden_members, has_protected_content, has_visible_history,
      invite_link, message_auto_delete_time, permissions, photo, pinned_message, profile_accent_color,
      profile_background_custom_emoji_id.
    • PrivateChat: accent_color, active_usernames, background_custom_emoji_id, bio, birthdate,
      business_intro, business_location, business_opening_hours, emoji_status_custom_emoji_id,
      emoji_status_expiration_date, has_private_forwards, has_restricted_voice_and_video_messages, last_name,
      message_auto_delete_time, personal_chat, photo, pinned_message, profile_accent_color,
      profile_background_custom_emoji_id.
    • SupergroupChat: accent_color, active_usernames, available_reactions, background_custom_emoji_id,
      can_set_sticker_set, custom_emoji_sticker_set_name, description, emoji_status_custom_emoji_id,
      emoji_status_expiration_date, has_aggressive_anti_spam_enabled, has_hidden_members, has_protected_content,
      has_visible_history, invite_link, is_forum, join_by_request, join_to_send_messages, linked_chat_id,
      location, message_auto_delete_time, permissions, photo, pinned_message, profile_accent_color,
      profile_background_custom_emoji_id, slow_mode_delay, sticker_set_name, unrestrict_boost_count.
  • Removed fields:
    • ChannelChat: with_accent_color, with_active_usernames, with_available_reactions,
      with_background_custom_emoji_id, with_description, with_emoji_status_custom_emoji_id,
      with_emoji_status_expiration_date, with_has_protected_content, with_invite_link, with_linked_chat_id,
      with_message_auto_delete_time, with_photo, with_pinned_message, with_profile_accent_color,
      with_profile_background_custom_emoji_id.
    • GroupChat: with_accent_color, with_available_reactions, with_background_custom_emoji_id,
      with_emoji_status_custom_emoji_id, with_emoji_status_expiration_date, with_has_hidden_members,
      with_has_protected_content, with_has_visible_history, with_invite_link, with_message_auto_delete_time,
      with_permissions, with_photo, with_pinned_message, with_profile_accent_color,
      with_profile_background_custom_emoji_id.
    • PrivateChat: with_accent_color, with_active_usernames, with_background_custom_emoji_id, with_bio,
      with_birthdate, with_business_intro, with_business_location, with_business_opening_hours,
      with_emoji_status_custom_emoji_id, with_emoji_status_expiration_date, with_has_private_forwards,
      with_has_restricted_voice_and_video_messages, with_last_name, with_message_auto_delete_time,
      with_personal_chat, with_photo, with_pinned_message, with_profile_accent_color,
      with_profile_background_custom_emoji_id.
    • SupergroupChat: with_accent_color, with_active_usernames, with_available_reactions,
      with_background_custom_emoji_id, with_can_set_sticker_set, with_custom_emoji_sticker_set_name,
      with_description, with_emoji_status_custom_emoji_id, with_emoji_status_expiration_date,
      with_has_aggressive_anti_spam_enabled, with_has_hidden_members, with_has_protected_content,
      with_has_visible_history, with_invite_link, with_is_forum, with_join_by_request,
      with_join_to_send_messages, with_linked_chat_id, with_location, with_message_auto_delete_time,
      with_permissions, with_photo, with_pinned_message, with_profile_accent_color,
      with_profile_background_custom_emoji_id, with_slow_mode_delay, with_sticker_set_name,
      with_unrestrict_boost_count.

0.22.0

01 Apr 17:43
a2fd4b8
Compare
Choose a tag to compare

Dependencies

  • Updated bytes version to 1.6.
  • Updated reqwest version to 0.12.
  • Updated tokio version to 1.37.

Bot API

7.2

  • Added types: Birthdate, BusinessConnection, BusinessMessagesDeleted, BusinessIntro, BusinessLocation,
    BusinessOpeningHours, BusinessOpeningHoursInterval, GetBusinessConnection, ReplaceStickerInSet, SharedUser.
  • Added enum variants:
    • UpdateType: BusinessConnection, BusinessMessage, EditedBusinessMessage, DeletedBusinessMessages.
    • AllowedUpdate: BusinessConnection, BusinessMessage, EditedBusinessMessage, DeletedBusinessMessages.
  • Added fields:
    • Bot: can_connect_to_business.
    • Message: business_connection_id, is_from_offline, sender_business_bot.
    • MessageDataChatShared: photo, title, username.
    • MessageDataUsersShared: users.
    • PrivateChat: birthdate, business_intro, business_location, business_opening_hours, personal_chat.
  • Added methods:
    • Bot: with_can_connect_to_business.
    • KeyboardButtonRequestChat: with_request_photo, with_request_title, with_request_username.
    • KeyboardButtonRequestUsers: with_request_name, with_request_photo, with_request_username.
    • Message: with_business_connection_id, with_is_from_offline, with_sender_business_bot.
    • MessageDataChatShared: with_photo, with_title, with_username.
    • PrivateChat: with_birthdate, with_business_intro, with_business_location, with_business_opening_hours,
      with_personal_chat.
    • SendAnimation: with_business_connection_id.
    • SendAudio: with_business_connection_id.
    • SendChatAction: with_business_connection_id.
    • SendContact: with_business_connection_id.
    • SendDice: with_business_connection_id.
    • SendDocument: with_business_connection_id.
    • SendGame: with_business_connection_id.
    • SendLocation: with_business_connection_id.
    • SendMediaGroup: with_business_connection_id.
    • SendMessage: with_business_connection_id.
    • SendPhoto: with_business_connection_id.
    • SendPoll: with_business_connection_id.
    • SendQuiz: with_business_connection_id.
    • SendSticker: with_business_connection_id.
    • SendVenue: with_business_connection_id.
    • SendVideo: with_business_connection_id.
    • SendVideoNote: with_business_connection_id.
    • SendVoice: with_business_connection_id.
  • Changed signature:
    • CreateNewStickerSet::new to (user_id: Integer, name: Into<String>, title: Into<String>, stickers: InputStickers) -> Result<Self, InputStickerError>
    • InputSticker::new to (sticker: Into<InputFile>, emoji_list: IntoIterator<Item=Into<String>>, format: StickerFormat) -> Self
    • SetStickerSetThumbnail::new to (name: Into<String>, user_id: Integer, format: StickerFormat) -> Self
  • Removed fields:
    • MessageDataUsersShared: user_ids.
    • StickerSet: is_animated, is_video.
  • Removed methods:
    • StickerSet: with_is_animated, with_is_video.