Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data EditMessageLiveLocationRequest = EditMessageLiveLocationRequest {
- editMessageLiveLocationChatId :: Maybe SomeChatId
- editMessageLiveLocationMessageId :: Maybe MessageId
- editMessageLiveLocationInlineMessageId :: Maybe Text
- editMessageLiveLocationLatitude :: Float
- editMessageLiveLocationLongitude :: Float
- editMessageLiveLocationHorizontalAccuracy :: Maybe Float
- editMessageLiveLocationHeading :: Maybe Int
- editMessageLiveLocationProximityAlertRadius :: Maybe Int
- editMessageLiveLocationReplyMarkup :: Maybe InlineKeyboardMarkup
- type EditMessageLiveLocation = "editMessageLiveLocation" :> (ReqBody '[JSON] EditMessageLiveLocationRequest :> Post '[JSON] (Response (Either Bool Message)))
- editMessageLiveLocation :: EditMessageLiveLocationRequest -> ClientM (Response (Either Bool Message))
editMessageLiveLocation
data EditMessageLiveLocationRequest Source #
Request parameters for editMessageLiveLocation
.
EditMessageLiveLocationRequest | |
|
Instances
type EditMessageLiveLocation = "editMessageLiveLocation" :> (ReqBody '[JSON] EditMessageLiveLocationRequest :> Post '[JSON] (Response (Either Bool Message))) Source #
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.