powered by
Use this method to send point on the map.
sendLocation(chat_id, latitude, longitude, disable_notification = FALSE, reply_to_message_id = NULL, reply_markup = NULL)
Unique identifier for the target chat or username of the target channel
Latitude of location
Longitude of location
(Optional). Sends the message silently. Users will receive a notification with no sound
(Optional). If the message is a reply, ID of the original message
(Optional). A Reply Markup parameter object, it can be either:
ReplyKeyboardMarkup
InlineKeyboardMarkup
ReplyKeyboardRemove
ForceReply
You can also use it's snake_case equivalent send_location.
send_location
# NOT RUN { bot <- Bot(token = bot_token('RBot')) chat_id <- user_id('me') bot$sendLocation(chat_id = chat_id, latitude = 51.521727, longitude = -0.117255) # }
Run the code above in your browser using DataLab