Skip to main content

bots.editAccessSettings

No description available.

func (c *Client) BotsEditAccessSettings(ctx context.Context, request *BotsEditAccessSettingsRequest) (bool, error)

Calling this method

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

res, err := api.BotsEditAccessSettings(ctx, &tg.BotsEditAccessSettingsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
RestrictedboolRestricted field of BotsEditAccessSettingsRequest.
BotInputUserClassyesBot field of BotsEditAccessSettingsRequest.
AddUsers[]InputUserClassAddUsers field of BotsEditAccessSettingsRequest.

Returns

bool

References