MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / SendVenue

Function SendVenue

Telegram/SourceFiles/api/api_sending.cpp:506–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506void SendVenue(SendAction action, Data::InputVenue venue) {
507 SendSimpleMedia(
508 action,
509 MTP_inputMediaVenue(
510 MTP_inputGeoPoint(
511 MTP_flags(0),
512 MTP_double(venue.lat),
513 MTP_double(venue.lon),
514 MTPint()), // accuracy_radius
515 MTP_string(venue.title),
516 MTP_string(venue.address),
517 MTP_string(venue.provider),
518 MTP_string(venue.id),
519 MTP_string(venue.venueType)));
520}
521
522void FillMessagePostFlags(
523 const SendAction &action,

Callers

nothing calls this directly

Calls 4

SendSimpleMediaFunction · 0.85
MTP_flagsFunction · 0.85
MTP_doubleFunction · 0.85
MTP_stringFunction · 0.85

Tested by

no test coverage detected