Skip to content

messages.sendMessage

Layer 225

Constructor ID: 0x545cd15a
Returns: Updates

Parameters

NameTypeDescription
no_webpagebool (flags.1, optional)
silentbool (flags.5, optional)
backgroundbool (flags.6, optional)
clear_draftbool (flags.7, optional)
noforwardsbool (flags.14, optional)
update_stickersets_orderbool (flags.15, optional)
invert_mediabool (flags.16, optional)
allow_paid_floodskipbool (flags.19, optional)
peerInputPeer
reply_toInputReplyTo (flags.0, optional)
messagestring
random_idint64
reply_markupReplyMarkup (flags.2, optional)
entities[]MessageEntity (flags.3, optional)
schedule_dateint32 (flags.10, optional)
schedule_repeat_periodint32 (flags.24, optional)
send_asInputPeer (flags.13, optional)
quick_reply_shortcutInputQuickReplyShortcut (flags.17, optional)
effectint64 (flags.18, optional)
allow_paid_starsint64 (flags.21, optional)
suggested_postSuggestedPost (flags.22, optional)

Example

go
result, err := client.Raw(&tg.SendMessageRequest{
    no_webpage: false,
    silent: false,
    background: false,
    clear_draft: false,
    noforwards: false,
    update_stickersets_order: false,
    invert_media: false,
    allow_paid_floodskip: false,
    peer: nil, // InputPeer
    reply_to: nil, // InputReplyTo
    message: "",
    random_id: 0,
    reply_markup: nil, // ReplyMarkup
    entities: nil,
    schedule_date: 0,
    schedule_repeat_period: 0,
    send_as: nil, // InputPeer
    quick_reply_shortcut: nil, // InputQuickReplyShortcut
    effect: 0,
    allow_paid_stars: 0,
    suggested_post: nil, // SuggestedPost
})
if err != nil {
    panic(err)
}
print(result)

Released under the Apache-2.0 License.