From 3a2c8a8ffe86cbf4512d022b44934a9142d64c75 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Sun, 26 Jun 2022 20:04:23 +0400 Subject: [PATCH] Make `InlineKeyboardButtonKind::Pay.0` have type `True` --- src/types/inline_keyboard_button.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/types/inline_keyboard_button.rs b/src/types/inline_keyboard_button.rs index f776d54f..add4988a 100644 --- a/src/types/inline_keyboard_button.rs +++ b/src/types/inline_keyboard_button.rs @@ -1,4 +1,4 @@ -use crate::types::{CallbackGame, LoginUrl, WebAppInfo}; +use crate::types::{CallbackGame, LoginUrl, True, WebAppInfo}; use serde::{Deserialize, Serialize}; /// This object represents one button of an inline keyboard. @@ -110,8 +110,7 @@ pub enum InlineKeyboardButtonKind { /// row. /// /// [Pay button]: https://core.telegram.org/bots/api#payments - // FIXME(waffle): This should be using `True` - Pay(bool), + Pay(True), } /// Build buttons.