telegram-api-0.4.0.1: Telegram Bot API bindings

Safe HaskellNone
LanguageHaskell2010

Web.Telegram.API.Bot.Data

Contents

Description

This module contains objects which represent data of Telegram Bot API responses

Synopsis

Types

data User Source

This object represents a Telegram user or bot.

Constructors

User 

Fields

user_id :: Int

Unique identifier for this user or bot

user_first_name :: Text

User‘s or bot’s first name

user_last_name :: Maybe Text

User‘s or bot’s last name

user_username :: Maybe Text

User‘s or bot’s username

data Chat Source

This object represents a chat.

Constructors

Chat 

Fields

chat_id :: Int

Unique identifier for this chat, not exceeding 1e13 by absolute value

chat_type :: ChatType

Type of chat, can be either Private, Group, Supergroup or Channel

chat_title :: Maybe Text

Title, for channels and group chats

chat_username :: Maybe Text

Username, for private chats and channels if available

chat_first_name :: Maybe Text

First name of the other party in a private chat

chat_last_name :: Maybe Text

Last name of the other party in a private chat

data Message Source

This object represents a message.

Constructors

Message 

Fields

message_id :: Int

Unique message identifier

from :: Maybe User

Sender, can be empty for messages sent to channels

date :: Int

Date the message was sent in Unix time

chat :: Chat

Conversation the message belongs to

forward_from :: Maybe User

For forwarded messages, sender of the original message

forward_from_chat :: Maybe Chat

For messages forwarded from a channel, information about the original channel

forward_date :: Maybe Int

For forwarded messages, date the original message was sent in Unix time

reply_to_message :: Maybe Message

For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.

text :: Maybe Text

For text messages, the actual UTF-8 text of the message

entities :: Maybe [MessageEntity]

For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text

audio :: Maybe Audio

Message is an audio file, information about the file

document :: Maybe Document

Message is a general file, information about the file

photo :: Maybe [PhotoSize]

Message is a photo, available sizes of the photo

sticker :: Maybe Sticker

Message is a sticker, information about the sticker

video :: Maybe Video

Message is a video, information about the video

voice :: Maybe Voice

Message is a voice message, information about the file

caption :: Maybe Text

Caption for the photo or video

contact :: Maybe Contact

Message is a shared contact, information about the contact

location :: Maybe Location

Message is a shared location, information about the location

venue :: Maybe Venue

Message is a venue, information about the venue

new_chat_member :: Maybe User

A new member was added to the group, information about them (this member may be the bot itself)

left_chat_member :: Maybe User

A member was removed from the group, information about them (this member may be the bot itself)

new_chat_title :: Maybe Text

A chat title was changed to this value

new_chat_photo :: Maybe [PhotoSize]

A chat photo was change to this value

delete_chat_photo :: Maybe Bool

Service message: the chat photo was deleted

group_chat_created :: Maybe Bool

Service message: the group has been created

supergroup_chat_created :: Maybe Bool

Service message: the supergroup has been created

channel_chat_created :: Maybe Bool

Service message: the channel has been created

migrate_to_chat_id :: Maybe Int

The group has been migrated to a supergroup with the specified identifier, not exceeding 1e13 by absolute value

migrate_from_chat_id :: Maybe Int

The supergroup has been migrated from a group with the specified identifier, not exceeding 1e13 by absolute value

pinned_message :: Maybe Message

Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.

data PhotoSize Source

This object represents one size of a photo or a File / Sticker thumbnail.

Constructors

PhotoSize 

Fields

photo_file_id :: Text

Unique identifier for this file

photo_width :: Int

Photo width

photo_height :: Int

Photo height

photo_file_size :: Maybe Int

File size

data Audio Source

This object represents an audio file to be treated as music by the Telegram clients.

Constructors

Audio 

Fields

audio_file_id :: Text

Unique identifier for this file

audio_duration :: Int

Duration of the audio in seconds as defined by sender

audio_performer :: Maybe Text

Performer of the audio as defined by sender or by audio tags

audio_title :: Maybe Text

Title of the audio as defined by sender or by audio tags

audio_mime_type :: Maybe Text

MIME type of the file as defined by sender

audio_file_size :: Maybe Int

File size

data Document Source

This object represents a general file (as opposed to PhotoSize, Voice messages and Audio files).

Constructors

Document 

Fields

doc_file_id :: Text

Unique file identifier

doc_thumb :: Maybe PhotoSize

Document thumbnail as defined by sender

doc_file_name :: Maybe Text

Original filename as defined by sender

doc_mime_type :: Maybe Text

MIME type of the file as defined by sender

doc_file_size :: Maybe Int

File size

data Sticker Source

This object represents a sticker.

Constructors

Sticker 

Fields

sticker_file_id :: Text

Unique identifier for this file

sticker_width :: Int

Sticker width

sticker_height :: Int

Sticker height

sticker_thumb :: Maybe PhotoSize

Sticker thumbnail in .webp or .jpg format

sticker_emoji :: Maybe Text

Emoji associated with the sticker

sticker_file_size :: Maybe Int

File size

data Video Source

This object represents a video file.

Constructors

Video 

Fields

video_file_id :: Text

Unique identifier for this file

video_width :: Int

Video width as defined by sender

video_height :: Int

Video height as defined by sender

video_duration :: Int

Duration of the video in seconds as defined by sender

video_thumb :: Maybe PhotoSize

Video thumbnail

video_mime_type :: Maybe Text

MIME type of a file as defined by sender

video_file_size :: Maybe Int

File size

data Voice Source

This object represents a voice note.

Constructors

Voice 

Fields

voice_file_id :: Text

Unique identifier for this file

voice_duration :: Int

Duration of the audio in seconds as defined by sender

voice_mime_type :: Maybe Text

MIME type of the file as defined by sender

voice_file_size :: Maybe Int

File size

data Contact Source

This object represents a phone contact.

Constructors

Contact 

Fields

contact_phone_number :: Text

Contact's phone number

contact_first_name :: Text

Contact's first name

contact_last_name :: Maybe Text

Contact's last name

contact_user_id :: Maybe Int

Contact's user identifier in Telegram

data Location Source

This object represents a point on the map.

Constructors

Location 

Fields

longitude :: Float

Longitude as defined by sender

latitude :: Float

Latitude as defined by sender

data Update Source

This object represents an incoming update. Only one of the optional parameters can be present in any given update.

Constructors

Update 

Fields

update_id :: Int

The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you’re using setWebhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order.

message :: Maybe Message

New incoming message of any kind — text, photo, sticker, etc.

inline_query :: Maybe InlineQuery

New incoming inline query

chosen_inline_result :: Maybe ChosenInlineResult

The result of a inline query that was chosen by a user and sent to their chat partner

callback_query :: Maybe CallbackQuery

This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be presented. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be presented.

data File Source

This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile.

Maximum file size to download is 20 MB

Constructors

File 

Fields

file_id :: Text

Unique identifier for this file

file_size :: Maybe Int

File size, if known

file_path :: Maybe Text

File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file.

data UserProfilePhotos Source

This object represent a user's profile pictures.

Constructors

UserProfilePhotos 

Fields

total_count :: Int

Total number of profile pictures the target user has

photos :: [[PhotoSize]]

Requested profile pictures (in up to 4 sizes each)

data InlineQuery Source

This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.

Constructors

InlineQuery 

Fields

query_id :: Text

Unique identifier for this query

query_from :: User

Sender

query_location :: Maybe Location

Sender location, only for bots that request user location

query_query :: Text

Text of the query

query_offset :: Text

Offset of the results to be returned, can be controlled by the bot

data ChosenInlineResult Source

This object represents a result of an inline query that was chosen by the user and sent to their chat partner.

Constructors

ChosenInlineResult 

Fields

chosen_result_id :: Text

The unique identifier for the result that was chosen

chosen_from :: User

The user that chose the result

chosen_location :: Maybe Location

Sender location, only for bots that require user location

chosen_inline_message_id :: Maybe Text

Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.

chosen_query :: Text

The query that was used to obtain the result

data InlineQueryResult Source

Constructors

InlineQueryResultArticle

Represents a link to an article or web page.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_title :: Maybe Text

Title of the result

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_url :: Maybe Text

URL of the result

iq_res_hide_url :: Maybe Bool

Pass True, if you don't want the URL to be shown in the message

iq_res_description :: Maybe Text

Short description of the result

iq_res_thumb_url :: Maybe Text

Url of the thumbnail for the result

iq_res_thumb_width :: Maybe Int

Thumbnail width

iq_res_thumb_height :: Maybe Int

Thumbnail height

InlineQueryResultPhoto

Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_photo_url :: Text

A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB

iq_res_thumb_url :: Maybe Text

Url of the thumbnail for the result

iq_res_photo_width :: Maybe Int

Optional. Width of the photo

iq_res_photo_height :: Maybe Int

Optional. Height of the photo

iq_res_title :: Maybe Text

Title of the result

iq_res_description :: Maybe Text

Short description of the result

iq_res_caption :: Maybe Text

Caption of the photo to be sent, 0-200 characters

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultGif

Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can provide message_text to send it instead of the animation.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_gif_url :: Text

A valid URL for the GIF file. File size must not exceed 1MB

iq_res_gif_width :: Maybe Int

Width of the GIF

iq_res_gif_height :: Maybe Int

Height of the GIF

iq_res_thumb_url :: Maybe Text

Url of the thumbnail for the result

iq_res_title :: Maybe Text

Title of the result

iq_res_caption :: Maybe Text

Caption of the photo to be sent, 0-200 characters

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultMpeg4Gif

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can provide message_text to send it instead of the animation.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_mpeg4_url :: Text

A valid URL for the MP4 file. File size must not exceed 1MB

iq_res_mpeg4_width :: Maybe Int

Video width

iq_res_mpeg4_height :: Maybe Int

Video height

iq_res_thumb_url :: Maybe Text

Url of the thumbnail for the result

iq_res_title :: Maybe Text

Title of the result

iq_res_caption :: Maybe Text

Caption of the photo to be sent, 0-200 characters

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultVideo

Represents link to a page containing an embedded video player or a video file.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_video_url :: Text

A valid URL for the embedded video player or video file

iq_res_mime_type :: Text

Mime type of the content of video url, “texthtml” or “videomp4”

iq_res_thumb_url :: Maybe Text

Url of the thumbnail for the result

iq_res_title :: Maybe Text

Title of the result

iq_res_caption :: Maybe Text

Caption of the photo to be sent, 0-200 characters

iq_res_video_width :: Maybe Int

Video width

iq_res_video_height :: Maybe Int

Video height

iq_res_video_duration :: Maybe Int

Video duration in seconds

iq_res_description :: Maybe Text

Short description of the result

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultAudio

Represents a link to an mp3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_audio_url :: Text

A valid URL for the audio file

iq_res_title :: Maybe Text

Title of the result

iq_res_performer :: Maybe Text

Performer

iq_res_audio_duration :: Maybe Int

Audio duration in seconds

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultVoice

Represents a link to a voice recording in an .ogg container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_voice_url :: Text

A valid URL for the voice recording

iq_res_title :: Maybe Text

Title of the result

iq_res_voice_duration :: Maybe Int

Recording duration in seconds

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultDocument

Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_title :: Maybe Text

Title of the result

iq_res_caption :: Maybe Text

Caption of the photo to be sent, 0-200 characters

iq_res_document_url :: Text

A valid URL for the file

iq_res_mime_type :: Text

Mime type of the content of video url, “texthtml” or “videomp4”

iq_res_description :: Maybe Text

Short description of the result

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

iq_res_thumb_url :: Maybe Text

Url of the thumbnail for the result

iq_res_thumb_width :: Maybe Int

Thumbnail width

iq_res_thumb_height :: Maybe Int

Thumbnail height

InlineQueryResultLocation

Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_latitude :: Float

Location latitude in degrees

iq_res_longitude :: Float

Location longitude in degrees

iq_res_title :: Maybe Text

Title of the result

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

iq_res_thumb_url :: Maybe Text

Url of the thumbnail for the result

iq_res_thumb_width :: Maybe Int

Thumbnail width

iq_res_thumb_height :: Maybe Int

Thumbnail height

InlineQueryResultVenue

Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_latitude :: Float

Location latitude in degrees

iq_res_longitude :: Float

Location longitude in degrees

iq_res_title :: Maybe Text

Title of the result

iq_res_address :: Text

Address of the venue

iq_res_foursquare_id :: Maybe Text

Foursquare identifier of the venue if known

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

iq_res_thumb_url :: Maybe Text

Url of the thumbnail for the result

iq_res_thumb_width :: Maybe Int

Thumbnail width

iq_res_thumb_height :: Maybe Int

Thumbnail height

InlineQueryResultContact

Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_phone_number :: Text

Contact's phone number

iq_res_first_name :: Text

Contact's first name

iq_res_last_name :: Maybe Text

Contact's last name

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

iq_res_thumb_url :: Maybe Text

Url of the thumbnail for the result

iq_res_thumb_width :: Maybe Int

Thumbnail width

iq_res_thumb_height :: Maybe Int

Thumbnail height

InlineQueryResultCachedPhoto

Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_photo_file_id :: Text

A valid file identifier of the photo

iq_res_title :: Maybe Text

Title of the result

iq_res_description :: Maybe Text

Short description of the result

iq_res_caption :: Maybe Text

Caption of the photo to be sent, 0-200 characters

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultCachedGif

Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_gif_file_id :: Text

A valid file identifier for the GIF file

iq_res_title :: Maybe Text

Title of the result

iq_res_caption :: Maybe Text

Caption of the photo to be sent, 0-200 characters

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultCachedMpeg4Gif

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_mpeg4_file_id :: Text

A valid file identifier for the MP4 file

iq_res_title :: Maybe Text

Title of the result

iq_res_caption :: Maybe Text

Caption of the photo to be sent, 0-200 characters

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultCachedSticker

Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_sticker_file_id :: Text

A valid file identifier of the sticker

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultCachedDocument

Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only pdf-files and zip archives can be sent using this method.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_title :: Maybe Text

Title of the result

iq_res_document_file_id :: Text

A valid file identifier for the file

iq_res_description :: Maybe Text

Short description of the result

iq_res_caption :: Maybe Text

Caption of the photo to be sent, 0-200 characters

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultCachedVideo

Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_video_file_id :: Text

A valid file identifier for the video file

iq_res_title :: Maybe Text

Title of the result

iq_res_description :: Maybe Text

Short description of the result

iq_res_caption :: Maybe Text

Caption of the photo to be sent, 0-200 characters

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultCachedVoice

Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_voice_file_id :: Text

A valid file identifier for the voice message

iq_res_title :: Maybe Text

Title of the result

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

InlineQueryResultCachedAudio

Represents a link to an mp3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.

Fields

iq_res_id :: Text

Unique identifier for this result, 1-64 Bytes

iq_res_audio_file_id :: Text

A valid file identifier for the audio file

iq_res_reply_markup :: Maybe InlineKeyboardMarkup

Inline keyboard attached to the message

iq_res_input_message_content :: Maybe InputMessageContent

Content of the message to be sent

data InputMessageContent Source

This object represents the content of a message to be sent as a result of an inline query.

Constructors

InputTextMessageContent

Represents the content of a text message to be sent as the result of an inline query.

Fields

imc_message_text :: Text

Text of the message to be sent, 1-4096 characters

imc_parse_mode :: Maybe ParseMode

Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.

imc_disable_web_page_preview :: Maybe Bool

Disables link previews for links in the sent message

InputLocationMessageContent

Represents the content of a location message to be sent as the result of an inline query.

Fields

imc_latitude :: Float

Latitude of the location in degrees

imc_longitude :: Float

Longitude of the location in degrees

InputVenueMessageContent

Represents the content of a venue message to be sent as the result of an inline query.

Fields

imc_latitude :: Float

Latitude of the location in degrees

imc_longitude :: Float

Longitude of the location in degrees

imc_title :: Text

Name of the venue

imc_address :: Text

Address of the venue

imc_foursquare_id :: Maybe Text

Foursquare identifier of the venue, if known

InputContactMessageContent

Represents the content of a contact message to be sent as the result of an inline query.

Fields

imc_phone_number :: Text

Contact's phone number

imc_first_name :: Text

Contact's first name

imc_last_name :: Maybe Text

Contact's last name

data KeyboardButton Source

Constructors

KeyboardButton 

Fields

kb_text :: Text

Text of the button. If none of the optional fields are used, it will be sent to the bot as a message when the button is pressed

kb_request_contact :: Maybe Bool

If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only

kb_request_location :: Maybe Bool

If True, the user's current location will be sent when the button is pressed. Available in private chats only

Functions