send_venue
Use this method to send information about a venue. On success, the sent Message is returned.
Parameters
chat_id
(int
orstr
): Unique identifier for the target chat or username of the target channellatitude
(float
): Latitude of the venuelongitude
(float
): Longitude of the venuetitle
(str
): Name of the venueaddress
(str
): Address of the venuebusiness_connection_id
(str
) (optional
): Identifier of a business connection, in which the message will be sentmessage_thread_id
(int
) (optional
): The thread to which the message will be sentfoursquare_id
(str
) (optional
): Foursquare identifier of the venuefoursquare_type
(str
) (optional
): Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)google_place_id
(str
) (optional
): Google Places identifier of the venuegoogle_place_type
(str
) (optional
): Google Places type of the venue.disable_notification
(bool
) (optional
): Sends the message silently. Users will receive a notification with no sound.protect_content
(bool
) (optional
): Protects the contents of the sent message from forwarding and savingmessage_effect_id
(str
) (optional
): Unique identifier of the message effectreply_parameters
(ReplyParameters) (optional
): Reply parameters.reply_markup
(InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply) (optional
): Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.allow_paid_broadcast
(bool
) (optional
): Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
Returns
Message
Examples
- Required Parameters
await bot.send_venue(
chat_id=your_chat_id_here,
latitude=your_latitude_here,
longitude=your_longitude_here,
title=your_title_here,
address=your_address_here
)
- All Parameters
await bot.send_venue(
chat_id=your_chat_id_here,
latitude=your_latitude_here,
longitude=your_longitude_here,
title=your_title_here,
address=your_address_here,
business_connection_id=your_business_connection_id_here,
message_thread_id=your_message_thread_id_here,
foursquare_id=your_foursquare_id_here,
foursquare_type=your_foursquare_type_here,
google_place_id=your_google_place_id_here,
google_place_type=your_google_place_type_here,
disable_notification=your_disable_notification_here,
protect_content=your_protect_content_here,
message_effect_id=your_message_effect_id_here,
reply_parameters=your_reply_parameters_here,
reply_markup=your_reply_markup_here,
allow_paid_broadcast=your_allow_paid_broadcast_here
)