Skip to main content

contacts.blockFromReplies

Stop getting notifications about discussion replies of a certain user in @replies

func (c *Client) ContactsBlockFromReplies(ctx context.Context, request *ContactsBlockFromRepliesRequest) (UpdatesClass, error)

Calling this method​

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.ContactsBlockFromReplies(ctx, &tg.ContactsBlockFromRepliesRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})

Parameters​

NameTypeRequiredDescription
DeleteMessagebool—Whether to delete the specified message as well
DeleteHistorybool—Whether to delete all @replies messages from this user as well
ReportSpambool—Whether to also report this user for spam
MsgIDintyesID of the message in the @replies chat

Returns​

UpdatesClass

Possible errors​

CodeTypeDescription
400MSG_ID_INVALIDInvalid message ID provided.

References​