Trait tg_botapi::TgMethod

source ·
pub trait TgMethod {
    type ResponseType;

    const PATH: &'static str;

    // Required method
    fn to_form(&self) -> Form;
}

Required Associated Types§

Required Associated Constants§

source

const PATH: &'static str

Required Methods§

source

fn to_form(&self) -> Form

Implementors§

source§

impl TgMethod for AddStickerToSet

§

type ResponseType = bool

source§

const PATH: &'static str = "addStickerToSet"

source§

impl TgMethod for AnswerCallbackQuery

§

type ResponseType = bool

source§

const PATH: &'static str = "answerCallbackQuery"

source§

impl TgMethod for AnswerInlineQuery

§

type ResponseType = bool

source§

const PATH: &'static str = "answerInlineQuery"

source§

impl TgMethod for AnswerPreCheckoutQuery

§

type ResponseType = bool

source§

const PATH: &'static str = "answerPreCheckoutQuery"

source§

impl TgMethod for AnswerShippingQuery

§

type ResponseType = bool

source§

const PATH: &'static str = "answerShippingQuery"

source§

impl TgMethod for AnswerWebAppQuery

§

type ResponseType = SentWebAppMessage

source§

const PATH: &'static str = "answerWebAppQuery"

source§

impl TgMethod for ApproveChatJoinRequest

§

type ResponseType = bool

source§

const PATH: &'static str = "approveChatJoinRequest"

source§

impl TgMethod for BanChatMember

§

type ResponseType = bool

source§

const PATH: &'static str = "banChatMember"

source§

impl TgMethod for BanChatSenderChat

§

type ResponseType = bool

source§

const PATH: &'static str = "banChatSenderChat"

source§

impl TgMethod for Close

§

type ResponseType = bool

source§

const PATH: &'static str = "close"

source§

impl TgMethod for CloseForumTopic

§

type ResponseType = bool

source§

const PATH: &'static str = "closeForumTopic"

source§

impl TgMethod for CloseGeneralForumTopic

§

type ResponseType = bool

source§

const PATH: &'static str = "closeGeneralForumTopic"

source§

impl TgMethod for CopyMessage

§

type ResponseType = MessageId

source§

const PATH: &'static str = "copyMessage"

§

type ResponseType = ChatInviteLink

source§

const PATH: &'static str = "createChatInviteLink"

source§

impl TgMethod for CreateForumTopic

§

type ResponseType = ForumTopic

source§

const PATH: &'static str = "createForumTopic"

§

type ResponseType = String

source§

const PATH: &'static str = "createInvoiceLink"

source§

impl TgMethod for CreateNewStickerSet

§

type ResponseType = bool

source§

const PATH: &'static str = "createNewStickerSet"

source§

impl TgMethod for DeclineChatJoinRequest

§

type ResponseType = bool

source§

const PATH: &'static str = "declineChatJoinRequest"

source§

impl TgMethod for DeleteChatPhoto

§

type ResponseType = bool

source§

const PATH: &'static str = "deleteChatPhoto"

source§

impl TgMethod for DeleteChatStickerSet

§

type ResponseType = bool

source§

const PATH: &'static str = "deleteChatStickerSet"

source§

impl TgMethod for DeleteForumTopic

§

type ResponseType = bool

source§

const PATH: &'static str = "deleteForumTopic"

source§

impl TgMethod for DeleteMessage

§

type ResponseType = bool

source§

const PATH: &'static str = "deleteMessage"

source§

impl TgMethod for DeleteMyCommands

§

type ResponseType = bool

source§

const PATH: &'static str = "deleteMyCommands"

source§

impl TgMethod for DeleteStickerFromSet

§

type ResponseType = bool

source§

const PATH: &'static str = "deleteStickerFromSet"

source§

impl TgMethod for DeleteWebhook

§

type ResponseType = bool

source§

const PATH: &'static str = "deleteWebhook"

§

type ResponseType = ChatInviteLink

source§

const PATH: &'static str = "editChatInviteLink"

source§

impl TgMethod for EditForumTopic

§

type ResponseType = bool

source§

const PATH: &'static str = "editForumTopic"

source§

impl TgMethod for EditGeneralForumTopic

§

type ResponseType = bool

source§

const PATH: &'static str = "editGeneralForumTopic"

source§

impl TgMethod for EditMessageCaption

§

type ResponseType = MessageOrBool

source§

const PATH: &'static str = "editMessageCaption"

source§

impl TgMethod for EditMessageLiveLocation

§

type ResponseType = MessageOrBool

source§

const PATH: &'static str = "editMessageLiveLocation"

source§

impl TgMethod for EditMessageMedia

§

type ResponseType = MessageOrBool

source§

const PATH: &'static str = "editMessageMedia"

source§

impl TgMethod for EditMessageReplyMarkup

§

type ResponseType = MessageOrBool

source§

const PATH: &'static str = "editMessageReplyMarkup"

source§

impl TgMethod for EditMessageText

§

type ResponseType = MessageOrBool

source§

const PATH: &'static str = "editMessageText"

§

type ResponseType = String

source§

const PATH: &'static str = "exportChatInviteLink"

source§

impl TgMethod for ForwardMessage

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "forwardMessage"

source§

impl TgMethod for GetChat

§

type ResponseType = Chat

source§

const PATH: &'static str = "getChat"

source§

impl TgMethod for GetChatAdministrators

§

type ResponseType = Vec<ChatMember, Global>

source§

const PATH: &'static str = "getChatAdministrators"

source§

impl TgMethod for GetChatMember

§

type ResponseType = ChatMember

source§

const PATH: &'static str = "getChatMember"

source§

impl TgMethod for GetChatMemberCount

§

type ResponseType = i64

source§

const PATH: &'static str = "getChatMemberCount"

source§

impl TgMethod for GetChatMenuButton

§

type ResponseType = MenuButton

source§

const PATH: &'static str = "getChatMenuButton"

source§

impl TgMethod for GetCustomEmojiStickers

§

type ResponseType = Vec<Sticker, Global>

source§

const PATH: &'static str = "getCustomEmojiStickers"

source§

impl TgMethod for GetFile

§

type ResponseType = File

source§

const PATH: &'static str = "getFile"

source§

impl TgMethod for GetForumTopicIconStickers

§

type ResponseType = Vec<Sticker, Global>

source§

const PATH: &'static str = "getForumTopicIconStickers"

source§

impl TgMethod for GetGameHighScores

§

type ResponseType = Vec<GameHighScore, Global>

source§

const PATH: &'static str = "getGameHighScores"

source§

impl TgMethod for GetMe

§

type ResponseType = User

source§

const PATH: &'static str = "getMe"

source§

impl TgMethod for GetMyCommands

§

type ResponseType = Vec<BotCommand, Global>

source§

const PATH: &'static str = "getMyCommands"

source§

impl TgMethod for GetMyDefaultAdministratorRights

§

type ResponseType = ChatAdministratorRights

source§

const PATH: &'static str = "getMyDefaultAdministratorRights"

source§

impl TgMethod for GetStickerSet

§

type ResponseType = StickerSet

source§

const PATH: &'static str = "getStickerSet"

source§

impl TgMethod for GetUpdates

§

type ResponseType = Vec<Update, Global>

source§

const PATH: &'static str = "getUpdates"

source§

impl TgMethod for GetUserProfilePhotos

§

type ResponseType = UserProfilePhotos

source§

const PATH: &'static str = "getUserProfilePhotos"

source§

impl TgMethod for GetWebhookInfo

§

type ResponseType = WebhookInfo

source§

const PATH: &'static str = "getWebhookInfo"

source§

impl TgMethod for HideGeneralForumTopic

§

type ResponseType = bool

source§

const PATH: &'static str = "hideGeneralForumTopic"

source§

impl TgMethod for LeaveChat

§

type ResponseType = bool

source§

const PATH: &'static str = "leaveChat"

source§

impl TgMethod for LogOut

§

type ResponseType = bool

source§

const PATH: &'static str = "logOut"

source§

impl TgMethod for PinChatMessage

§

type ResponseType = bool

source§

const PATH: &'static str = "pinChatMessage"

source§

impl TgMethod for PromoteChatMember

§

type ResponseType = bool

source§

const PATH: &'static str = "promoteChatMember"

source§

impl TgMethod for ReopenForumTopic

§

type ResponseType = bool

source§

const PATH: &'static str = "reopenForumTopic"

source§

impl TgMethod for ReopenGeneralForumTopic

§

type ResponseType = bool

source§

const PATH: &'static str = "reopenGeneralForumTopic"

source§

impl TgMethod for RestrictChatMember

§

type ResponseType = bool

source§

const PATH: &'static str = "restrictChatMember"

§

type ResponseType = ChatInviteLink

source§

const PATH: &'static str = "revokeChatInviteLink"

source§

impl TgMethod for SendAnimation

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendAnimation"

source§

impl TgMethod for SendAudio

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendAudio"

source§

impl TgMethod for SendChatAction

§

type ResponseType = bool

source§

const PATH: &'static str = "sendChatAction"

source§

impl TgMethod for SendContact

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendContact"

source§

impl TgMethod for SendDice

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendDice"

source§

impl TgMethod for SendDocument

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendDocument"

source§

impl TgMethod for SendGame

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendGame"

source§

impl TgMethod for SendInvoice

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendInvoice"

source§

impl TgMethod for SendLocation

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendLocation"

source§

impl TgMethod for SendMediaGroup

§

type ResponseType = Vec<Message, Global>

source§

const PATH: &'static str = "sendMediaGroup"

source§

impl TgMethod for SendMessage

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendMessage"

source§

impl TgMethod for SendPhoto

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendPhoto"

source§

impl TgMethod for SendPoll

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendPoll"

source§

impl TgMethod for SendSticker

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendSticker"

source§

impl TgMethod for SendVenue

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendVenue"

source§

impl TgMethod for SendVideo

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendVideo"

source§

impl TgMethod for SendVideoNote

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendVideoNote"

source§

impl TgMethod for SendVoice

§

type ResponseType = Box<Message, Global>

source§

const PATH: &'static str = "sendVoice"

source§

impl TgMethod for SetChatAdministratorCustomTitle

§

type ResponseType = bool

source§

const PATH: &'static str = "setChatAdministratorCustomTitle"

source§

impl TgMethod for SetChatDescription

§

type ResponseType = bool

source§

const PATH: &'static str = "setChatDescription"

source§

impl TgMethod for SetChatMenuButton

§

type ResponseType = bool

source§

const PATH: &'static str = "setChatMenuButton"

source§

impl TgMethod for SetChatPermissions

§

type ResponseType = bool

source§

const PATH: &'static str = "setChatPermissions"

source§

impl TgMethod for SetChatPhoto

§

type ResponseType = bool

source§

const PATH: &'static str = "setChatPhoto"

source§

impl TgMethod for SetChatStickerSet

§

type ResponseType = bool

source§

const PATH: &'static str = "setChatStickerSet"

source§

impl TgMethod for SetChatTitle

§

type ResponseType = bool

source§

const PATH: &'static str = "setChatTitle"

source§

impl TgMethod for SetGameScore

§

type ResponseType = MessageOrBool

source§

const PATH: &'static str = "setGameScore"

source§

impl TgMethod for SetMyCommands

§

type ResponseType = bool

source§

const PATH: &'static str = "setMyCommands"

source§

impl TgMethod for SetMyDefaultAdministratorRights

§

type ResponseType = bool

source§

const PATH: &'static str = "setMyDefaultAdministratorRights"

source§

impl TgMethod for SetPassportDataErrors

§

type ResponseType = bool

source§

const PATH: &'static str = "setPassportDataErrors"

source§

impl TgMethod for SetStickerPositionInSet

§

type ResponseType = bool

source§

const PATH: &'static str = "setStickerPositionInSet"

source§

impl TgMethod for SetStickerSetThumb

§

type ResponseType = bool

source§

const PATH: &'static str = "setStickerSetThumb"

source§

impl TgMethod for SetWebhook

§

type ResponseType = bool

source§

const PATH: &'static str = "setWebhook"

source§

impl TgMethod for StopMessageLiveLocation

§

type ResponseType = MessageOrBool

source§

const PATH: &'static str = "stopMessageLiveLocation"

source§

impl TgMethod for StopPoll

§

type ResponseType = Poll

source§

const PATH: &'static str = "stopPoll"

source§

impl TgMethod for UnbanChatMember

§

type ResponseType = bool

source§

const PATH: &'static str = "unbanChatMember"

source§

impl TgMethod for UnbanChatSenderChat

§

type ResponseType = bool

source§

const PATH: &'static str = "unbanChatSenderChat"

source§

impl TgMethod for UnhideGeneralForumTopic

§

type ResponseType = bool

source§

const PATH: &'static str = "unhideGeneralForumTopic"

source§

impl TgMethod for UnpinAllChatMessages

§

type ResponseType = bool

source§

const PATH: &'static str = "unpinAllChatMessages"

source§

impl TgMethod for UnpinAllForumTopicMessages

§

type ResponseType = bool

source§

const PATH: &'static str = "unpinAllForumTopicMessages"

source§

impl TgMethod for UnpinChatMessage

§

type ResponseType = bool

source§

const PATH: &'static str = "unpinChatMessage"

source§

impl TgMethod for UploadStickerFile

§

type ResponseType = File

source§

const PATH: &'static str = "uploadStickerFile"