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
| Name | Type | Required | Description |
|---|---|---|---|
DeleteMessage | bool | — | Whether to delete the specified message as well |
DeleteHistory | bool | — | Whether to delete all @replies messages from this user as well |
ReportSpam | bool | — | Whether to also report this user for spam |
MsgID | int | yes | ID of the message in the @replies chat |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
References
- Official documentation
- Generated Go reference
- TL definition:
contacts.blockFromReplies#29a8962c