telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Methods.EditMessageLiveLocation

Synopsis

editMessageLiveLocation

data EditMessageLiveLocationRequest Source #

Request parameters for editMessageLiveLocation.

Constructors

EditMessageLiveLocationRequest 

Fields

Instances

Instances details
FromJSON EditMessageLiveLocationRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditMessageLiveLocation

ToJSON EditMessageLiveLocationRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditMessageLiveLocation

Generic EditMessageLiveLocationRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditMessageLiveLocation

Associated Types

type Rep EditMessageLiveLocationRequest :: Type -> Type #

type Rep EditMessageLiveLocationRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditMessageLiveLocation

type Rep EditMessageLiveLocationRequest = D1 ('MetaData "EditMessageLiveLocationRequest" "Telegram.Bot.API.Methods.EditMessageLiveLocation" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "EditMessageLiveLocationRequest" 'PrefixI 'True) (((S1 ('MetaSel ('Just "editMessageLiveLocationChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeChatId)) :*: S1 ('MetaSel ('Just "editMessageLiveLocationMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId))) :*: (S1 ('MetaSel ('Just "editMessageLiveLocationInlineMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "editMessageLiveLocationLatitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float))) :*: ((S1 ('MetaSel ('Just "editMessageLiveLocationLongitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float) :*: S1 ('MetaSel ('Just "editMessageLiveLocationHorizontalAccuracy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Float))) :*: (S1 ('MetaSel ('Just "editMessageLiveLocationHeading") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "editMessageLiveLocationProximityAlertRadius") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "editMessageLiveLocationReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InlineKeyboardMarkup)))))))

editMessageLiveLocation :: EditMessageLiveLocationRequest -> ClientM (Response (Either Bool Message)) Source #

Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.