packages feed

telegram-bot-api-7.4.2 / src / Telegram / Bot / API / Types.hs

{-# LANGUAGE FlexibleInstances #-}{-# LANGUAGE DuplicateRecordFields #-}{-# LANGUAGE DataKinds #-}{-# LANGUAGE DeriveGeneric #-}{-# LANGUAGE GeneralizedNewtypeDeriving #-}{-# LANGUAGE OverloadedStrings #-}{-# LANGUAGE TemplateHaskell #-}{-# LANGUAGE TypeApplications #-}{-# LANGUAGE LambdaCase #-}{-# LANGUAGE BlockArguments #-}{-# LANGUAGE ScopedTypeVariables #-}{-# LANGUAGE RecordWildCards #-}{-# LANGUAGE MultiParamTypeClasses #-}module Telegram.Bot.API.Types  ( RequiredQueryParam   , module Telegram.Bot.API.Types.Animation  , module Telegram.Bot.API.Types.Audio  , module Telegram.Bot.API.Types.BotCommand  , module Telegram.Bot.API.Types.BotCommandScope  , module Telegram.Bot.API.Types.BotDescription  , module Telegram.Bot.API.Types.Birthdate  , module Telegram.Bot.API.Types.BotName  , module Telegram.Bot.API.Types.BotShortDescription  , module Telegram.Bot.API.Types.BusinessConnection  , module Telegram.Bot.API.Types.BusinessIntro  , module Telegram.Bot.API.Types.BusinessMessagesDeleted  , module Telegram.Bot.API.Types.BusinessLocation  , module Telegram.Bot.API.Types.BusinessOpeningHours  , module Telegram.Bot.API.Types.BusinessOpeningHoursInterval  , module Telegram.Bot.API.Types.CallbackGame  , module Telegram.Bot.API.Types.CallbackQuery  , module Telegram.Bot.API.Types.Chat  , module Telegram.Bot.API.Types.ChatAdministratorRights  , module Telegram.Bot.API.Types.ChatBoost  , module Telegram.Bot.API.Types.ChatBoostAdded  , module Telegram.Bot.API.Types.ChatBoostRemoved  , module Telegram.Bot.API.Types.ChatBoostSource  , module Telegram.Bot.API.Types.ChatBoostUpdated  , module Telegram.Bot.API.Types.ChatFullInfo  , module Telegram.Bot.API.Types.ChatInviteLink  , module Telegram.Bot.API.Types.ChatJoinRequest  , module Telegram.Bot.API.Types.ChatLocation  , module Telegram.Bot.API.Types.ChatMember  , module Telegram.Bot.API.Types.ChatMemberUpdated  , module Telegram.Bot.API.Types.ChatPermissions  , module Telegram.Bot.API.Types.ChatPhoto  , module Telegram.Bot.API.Types.ChatShared  , module Telegram.Bot.API.Types.ChatType  , module Telegram.Bot.API.Types.Common  , module Telegram.Bot.API.Types.Contact  , module Telegram.Bot.API.Types.CopyMessageId  , module Telegram.Bot.API.Types.Dice  , module Telegram.Bot.API.Types.Document  , module Telegram.Bot.API.Types.EncryptedCredentials  , module Telegram.Bot.API.Types.EncryptedPassportElement  , module Telegram.Bot.API.Types.ExternalReplyInfo  , module Telegram.Bot.API.Types.File  , module Telegram.Bot.API.Types.ForceReply  , module Telegram.Bot.API.Types.ForumTopic  , module Telegram.Bot.API.Types.ForumTopicEdited  , module Telegram.Bot.API.Types.ForumTopicClosed  , module Telegram.Bot.API.Types.ForumTopicCreated  , module Telegram.Bot.API.Types.ForumTopicReopened  , module Telegram.Bot.API.Types.Game  , module Telegram.Bot.API.Types.GameHighScore  , module Telegram.Bot.API.Types.Giveaway  , module Telegram.Bot.API.Types.GiveawayCompleted  , module Telegram.Bot.API.Types.GiveawayCreated  , module Telegram.Bot.API.Types.GiveawayWinners  , module Telegram.Bot.API.Types.GeneralForumTopicHidden  , module Telegram.Bot.API.Types.GeneralForumTopicUnhidden  , module Telegram.Bot.API.Types.InlineKeyboardButton  , module Telegram.Bot.API.Types.InlineKeyboardMarkup  , module Telegram.Bot.API.Types.InputMedia  , module Telegram.Bot.API.Types.InputPollOption  , module Telegram.Bot.API.Types.Invoice  , module Telegram.Bot.API.Types.KeyboardButton  , module Telegram.Bot.API.Types.KeyboardButtonRequestChat  , module Telegram.Bot.API.Types.KeyboardButtonRequestUsers  , module Telegram.Bot.API.Types.LabeledPrice  , module Telegram.Bot.API.Types.LinkPreviewOptions  , module Telegram.Bot.API.Types.Location  , module Telegram.Bot.API.Types.LoginUrl  , module Telegram.Bot.API.Types.MaskPosition  , module Telegram.Bot.API.Types.MenuButton  , module Telegram.Bot.API.Types.Message  , module Telegram.Bot.API.Types.MessageAutoDeleteTimerChanged  , module Telegram.Bot.API.Types.MessageEntity  , module Telegram.Bot.API.Types.MessageOrigin  , module Telegram.Bot.API.Types.MessageReactionCountUpdated  , module Telegram.Bot.API.Types.MessageReactionUpdated  , module Telegram.Bot.API.Types.OrderInfo  , module Telegram.Bot.API.Types.PassportData  , module Telegram.Bot.API.Types.PassportElementError  , module Telegram.Bot.API.Types.PassportFile  , module Telegram.Bot.API.Types.PhotoSize  , module Telegram.Bot.API.Types.Poll  , module Telegram.Bot.API.Types.PollAnswer  , module Telegram.Bot.API.Types.PollOption  , module Telegram.Bot.API.Types.PollType  , module Telegram.Bot.API.Types.PreCheckoutQuery  , module Telegram.Bot.API.Types.ProximityAlertTriggered  , module Telegram.Bot.API.Types.ReactionCount  , module Telegram.Bot.API.Types.ReactionType  , module Telegram.Bot.API.Types.ReplyKeyboardMarkup  , module Telegram.Bot.API.Types.ReplyKeyboardRemove  , module Telegram.Bot.API.Types.ReplyParameters  , module Telegram.Bot.API.Types.ResponseParameters  , module Telegram.Bot.API.Types.SharedUser  , module Telegram.Bot.API.Types.ShippingAddress  , module Telegram.Bot.API.Types.ShippingOption  , module Telegram.Bot.API.Types.ShippingQuery  , module Telegram.Bot.API.Types.Sticker  , module Telegram.Bot.API.Types.Story  , module Telegram.Bot.API.Types.SuccessfulPayment  , module Telegram.Bot.API.Types.User  , module Telegram.Bot.API.Types.UserChatBoosts  , module Telegram.Bot.API.Types.UserProfilePhotos  , module Telegram.Bot.API.Types.UsersShared  , module Telegram.Bot.API.Types.UserShared  , module Telegram.Bot.API.Types.Venue  , module Telegram.Bot.API.Types.Video  , module Telegram.Bot.API.Types.VideoChatEnded  , module Telegram.Bot.API.Types.VideoChatScheduled  , module Telegram.Bot.API.Types.VideoChatStarted  , module Telegram.Bot.API.Types.VideoNote  , module Telegram.Bot.API.Types.Voice  , module Telegram.Bot.API.Types.WebAppData  , module Telegram.Bot.API.Types.WriteAccessAllowed  ) whereimport Servant.APIimport Telegram.Bot.API.Types.Animationimport Telegram.Bot.API.Types.Audioimport Telegram.Bot.API.Types.BotCommandimport Telegram.Bot.API.Types.BotCommandScopeimport Telegram.Bot.API.Types.BotDescriptionimport Telegram.Bot.API.Types.Birthdateimport Telegram.Bot.API.Types.BotNameimport Telegram.Bot.API.Types.BotShortDescriptionimport Telegram.Bot.API.Types.BusinessConnectionimport Telegram.Bot.API.Types.BusinessIntroimport Telegram.Bot.API.Types.BusinessMessagesDeletedimport Telegram.Bot.API.Types.BusinessLocationimport Telegram.Bot.API.Types.BusinessOpeningHoursimport Telegram.Bot.API.Types.BusinessOpeningHoursIntervalimport Telegram.Bot.API.Types.CallbackGameimport Telegram.Bot.API.Types.CallbackQueryimport Telegram.Bot.API.Types.Chatimport Telegram.Bot.API.Types.ChatAdministratorRightsimport Telegram.Bot.API.Types.ChatBoostimport Telegram.Bot.API.Types.ChatBoostAddedimport Telegram.Bot.API.Types.ChatBoostRemovedimport Telegram.Bot.API.Types.ChatBoostSourceimport Telegram.Bot.API.Types.ChatBoostUpdatedimport Telegram.Bot.API.Types.ChatFullInfoimport Telegram.Bot.API.Types.ChatInviteLinkimport Telegram.Bot.API.Types.ChatJoinRequestimport Telegram.Bot.API.Types.ChatLocationimport Telegram.Bot.API.Types.ChatMemberimport Telegram.Bot.API.Types.ChatMemberUpdatedimport Telegram.Bot.API.Types.ChatPermissionsimport Telegram.Bot.API.Types.ChatPhotoimport Telegram.Bot.API.Types.ChatSharedimport Telegram.Bot.API.Types.ChatTypeimport Telegram.Bot.API.Types.Commonimport Telegram.Bot.API.Types.Contactimport Telegram.Bot.API.Types.CopyMessageIdimport Telegram.Bot.API.Types.Diceimport Telegram.Bot.API.Types.Documentimport Telegram.Bot.API.Types.EncryptedCredentialsimport Telegram.Bot.API.Types.EncryptedPassportElementimport Telegram.Bot.API.Types.ExternalReplyInfoimport Telegram.Bot.API.Types.Fileimport Telegram.Bot.API.Types.ForceReplyimport Telegram.Bot.API.Types.ForumTopicimport Telegram.Bot.API.Types.ForumTopicEditedimport Telegram.Bot.API.Types.ForumTopicClosedimport Telegram.Bot.API.Types.ForumTopicCreatedimport Telegram.Bot.API.Types.ForumTopicReopenedimport Telegram.Bot.API.Types.Gameimport Telegram.Bot.API.Types.GameHighScoreimport Telegram.Bot.API.Types.Giveawayimport Telegram.Bot.API.Types.GiveawayCompletedimport Telegram.Bot.API.Types.GiveawayCreatedimport Telegram.Bot.API.Types.GiveawayWinnersimport Telegram.Bot.API.Types.GeneralForumTopicHiddenimport Telegram.Bot.API.Types.GeneralForumTopicUnhiddenimport Telegram.Bot.API.Types.InlineKeyboardButtonimport Telegram.Bot.API.Types.InlineKeyboardMarkupimport Telegram.Bot.API.Types.InputMediaimport Telegram.Bot.API.Types.InputPollOptionimport Telegram.Bot.API.Types.Invoiceimport Telegram.Bot.API.Types.KeyboardButtonimport Telegram.Bot.API.Types.KeyboardButtonRequestChatimport Telegram.Bot.API.Types.KeyboardButtonRequestUsersimport Telegram.Bot.API.Types.LabeledPriceimport Telegram.Bot.API.Types.LinkPreviewOptionsimport Telegram.Bot.API.Types.Locationimport Telegram.Bot.API.Types.LoginUrlimport Telegram.Bot.API.Types.MaskPositionimport Telegram.Bot.API.Types.MenuButtonimport Telegram.Bot.API.Types.Messageimport Telegram.Bot.API.Types.MessageAutoDeleteTimerChangedimport Telegram.Bot.API.Types.MessageEntityimport Telegram.Bot.API.Types.MessageOriginimport Telegram.Bot.API.Types.MessageReactionCountUpdatedimport Telegram.Bot.API.Types.MessageReactionUpdatedimport Telegram.Bot.API.Types.OrderInfoimport Telegram.Bot.API.Types.PassportDataimport Telegram.Bot.API.Types.PassportElementErrorimport Telegram.Bot.API.Types.PassportFileimport Telegram.Bot.API.Types.PhotoSizeimport Telegram.Bot.API.Types.Pollimport Telegram.Bot.API.Types.PollAnswerimport Telegram.Bot.API.Types.PollOptionimport Telegram.Bot.API.Types.PollTypeimport Telegram.Bot.API.Types.PreCheckoutQueryimport Telegram.Bot.API.Types.ProximityAlertTriggeredimport Telegram.Bot.API.Types.ReactionCountimport Telegram.Bot.API.Types.ReactionTypeimport Telegram.Bot.API.Types.ReplyKeyboardMarkupimport Telegram.Bot.API.Types.ReplyKeyboardRemoveimport Telegram.Bot.API.Types.ReplyParametersimport Telegram.Bot.API.Types.ResponseParametersimport Telegram.Bot.API.Types.SharedUserimport Telegram.Bot.API.Types.ShippingAddressimport Telegram.Bot.API.Types.ShippingOptionimport Telegram.Bot.API.Types.ShippingQueryimport Telegram.Bot.API.Types.Stickerimport Telegram.Bot.API.Types.Storyimport Telegram.Bot.API.Types.SuccessfulPaymentimport Telegram.Bot.API.Types.Userimport Telegram.Bot.API.Types.UserChatBoostsimport Telegram.Bot.API.Types.UserProfilePhotosimport Telegram.Bot.API.Types.UsersSharedimport Telegram.Bot.API.Types.UserSharedimport Telegram.Bot.API.Types.Venueimport Telegram.Bot.API.Types.Videoimport Telegram.Bot.API.Types.VideoChatEndedimport Telegram.Bot.API.Types.VideoChatScheduledimport Telegram.Bot.API.Types.VideoChatStartedimport Telegram.Bot.API.Types.VideoNoteimport Telegram.Bot.API.Types.Voiceimport Telegram.Bot.API.Types.WebAppDataimport Telegram.Bot.API.Types.WriteAccessAllowedtype RequiredQueryParam = QueryParam' '[Required , Strict]-- * Available types-- * Stickers-- | The following methods and objects allow your bot to handle stickers and sticker sets.-- * Payments-- * Telegram Passport-- | Telegram Passport is a unified authorization method for services that require personal identification. Users can upload their documents once, then instantly share their data with services that require real-world ID (finance, ICOs, etc.). Please see the manual for details.-- * Games-- | Your bot can offer users HTML5 games to play solo or to compete against each other in groups and one-on-one chats. Create games via @BotFather using the /newgame command. Please note that this kind of power requires responsibility: you will need to accept the terms for each game that your bots will be offering.-- -- Games are a new type of content on Telegram, represented by the Game and InlineQueryResultGame objects.-- Once you've created a game via BotFather, you can send games to chats as regular messages using the sendGame method, or use inline mode with InlineQueryResultGame.-- If you send the game message without any buttons, it will automatically have a 'Play GameName' button. When this button is pressed, your bot gets a CallbackQuery with the game_short_name of the requested game. You provide the correct URL for this particular user and the app opens the game in the in-app browser.-- You can manually add multiple buttons to your game message. Please note that the first button in the first row must always launch the game, using the field callback_game in InlineKeyboardButton. You can add extra buttons according to taste: e.g., for a description of the rules, or to open the game's official community.-- To make your game more attractive, you can upload a GIF animation that demostrates the game to the users via BotFather (see Lumberjack for example).-- A game message will also display high scores for the current chat. Use setGameScore to post high scores to the chat with the game, add the edit_message parameter to automatically update the message with the current scoreboard.-- Use getGameHighScores to get data for in-game high score tables.-- You can also add an extra sharing button for users to share their best score to different chats.-- For examples of what can be done using this new stuff, check the @gamebot and @gamee bots.