TgKit library and website are still in early development!

LocationMessageSendOptions Interface

Properties

allowSendingWithoutReply boolean

Pass true if the message should be sent even if the specified replied-to message is not found

See the code

businessConnectionId string

Unique identifier of the business connection on behalf of which the message will be sent

See the code

disableNotification boolean

Sends the message [silently](https://telegram.org/blog/channels-2-0#silent-messages). Users will receive a notification with no sound.

See the code

forumTopicId number

Unique identifier for the target message thread (topic) of the forum; for forum supergroups only

See the code

heading number

For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.

See the code

horizontalAccuracy number

The radius of uncertainty for the location, measured in meters; 0-1500

See the code

livePeriod number

Period in seconds for which the location will be updated, should be between 60 and 86400

See the code

protectContent boolean

Protects the contents of the sent message from forwarding and saving

See the code

proximityAlertRadius number

For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100_000 if specified.

See the code

replyMarkup

Additional export 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.

See the code

replyToMessageId number

If the message is a reply, ID of the original message

See the code