Skip to content

Releases: tg-rs/tgbot

0.34.0

02 Jan 05:53
45e4b33
Compare
Choose a tag to compare

Dependencies

  • axum 0.8

Bot API

8.2

  • Added types: RemoveChatVerification, RemoveUserVerification, VerifyChat, VerifyUser.
  • Added fields:
    • Gift: upgrade_star_count.
  • Added methods:
    • Gift: with_upgrade_star_count.
    • SendGift: with_pay_for_upgrade.
  • Removed methods:
    • InlineQueryResultArticle: with_hide_url.

0.33.0

04 Dec 15:58
25d6439
Compare
Choose a tag to compare

Dependencies

  • bytes 1.9
  • tokio 1.42

Bot API

8.1

  • Added types: AffiliateInfo, TransactionPartnerAffiliateProgramParameters.
  • Added fields:
    • TransactionPartnerUserParameters: affiliate.
  • Added enum variants:
    • TransactionPartner: AffiliateProgram.
  • Added methods:
    • StarTransaction: with_nanostar_amount.
    • TransactionPartnerUserParameters: with_affiliate.

0.32.0

17 Nov 19:19
c08b7e5
Compare
Choose a tag to compare

Bot API

8.0

  • Added types: EditUserStarSubscription, GetAvailableGifts, Gift, Gifts, PreparedInlineMessage,
    SavePreparedInlineMessage, SendGift, SetUserEmojiStatus, TransactionPartnerUserParameters.
  • Added fields:
    • SuccessfulPayment: is_first_recurring, is_recurring, subscription_expiration_date.
  • Added methods:
    • CreateInvoiceLink: with_business_connection_id, with_subscription_period.
    • SuccessfulPayment: with_is_first_recurring, with_is_recurring, with_subscription_expiration_date.
  • Changed enum variants:
    • TransactionPartner::User: Move all fields to TransactionPartnerUserParameters
      with additional gift and subscription_period fields introduced in Bot API 8.0.

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.