Skip to main content

channels.getMessageAuthor

Can only be invoked by non-bot admins of a monoforum », obtains the original sender of a message sent by other monoforum admins to the monoforum, on behalf of the channel associated to the monoforum.

func (c *Client) ChannelsGetMessageAuthor(ctx context.Context, request *ChannelsGetMessageAuthorRequest) (UserClass, error)

Calling this method

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

res, err := api.ChannelsGetMessageAuthor(ctx, &tg.ChannelsGetMessageAuthorRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UserClass
return nil
})

Parameters

NameTypeRequiredDescription
ChannelInputChannelClassyesID of the monoforum.
IDintyesID of the message sent by a monoforum admin.

Returns

UserClass

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.

References