sendLocation: Send point on the map

View source: R/bot.R

sendLocationR Documentation

Send point on the map

Description

Use this method to send point on the map.

Usage

sendLocation(
  chat_id,
  latitude,
  longitude,
  disable_notification = FALSE,
  reply_to_message_id = NULL,
  reply_markup = NULL
)

Arguments

chat_id

Unique identifier for the target chat or username of the target channel.

latitude

Latitude of location.

longitude

Longitude of location.

disable_notification

(Optional). Sends the message silently. Users will receive a notification with no sound.

reply_to_message_id

(Optional). If the message is a reply, ID of the original message.

reply_markup

(Optional). A Reply Markup parameter object, it can be either:

  • ReplyKeyboardMarkup

  • InlineKeyboardMarkup

  • ReplyKeyboardRemove

  • ForceReply

Details

You can also use it's snake_case equivalent send_location.

Examples

## Not run: 
bot <- Bot(token = bot_token("RTelegramBot"))
chat_id <- user_id("Me")

bot$sendLocation(
  chat_id = chat_id,
  latitude = 51.521727,
  longitude = -0.117255
)

## End(Not run)

telegram.bot documentation built on Sept. 7, 2022, 5:07 p.m.