Skip to content

messages.forwardMessages

Layer 225

Constructor ID: 0x13704a7c
Returns: Updates

Parameters

NameTypeDescription
silentbool (flags.5, optional)
backgroundbool (flags.6, optional)
with_my_scorebool (flags.8, optional)
drop_authorbool (flags.11, optional)
drop_media_captionsbool (flags.12, optional)
noforwardsbool (flags.14, optional)
allow_paid_floodskipbool (flags.19, optional)
from_peerInputPeer
id[]int32
random_id[]int64
to_peerInputPeer
top_msg_idint32 (flags.9, optional)
reply_toInputReplyTo (flags.22, 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)
video_timestampint32 (flags.20, optional)
allow_paid_starsint64 (flags.21, optional)
suggested_postSuggestedPost (flags.23, optional)

Example

go
result, err := client.Raw(&tg.ForwardMessagesRequest{
    silent: false,
    background: false,
    with_my_score: false,
    drop_author: false,
    drop_media_captions: false,
    noforwards: false,
    allow_paid_floodskip: false,
    from_peer: nil, // InputPeer
    id: nil,
    random_id: nil,
    to_peer: nil, // InputPeer
    top_msg_id: 0,
    reply_to: nil, // InputReplyTo
    schedule_date: 0,
    schedule_repeat_period: 0,
    send_as: nil, // InputPeer
    quick_reply_shortcut: nil, // InputQuickReplyShortcut
    effect: 0,
    video_timestamp: 0,
    allow_paid_stars: 0,
    suggested_post: nil, // SuggestedPost
})
if err != nil {
    panic(err)
}
print(result)

Released under the Apache-2.0 License.