C# Class Telegram.BotAPI.AvailableMethods.AvailableMethodsExtensions

Exibir arquivo Open project: Eptagone/Telegram.BotAPI

Public Methods

Method Description
SetChatAdministratorCustomTitle ( BotClient bot, long chatId, long userId, string customTitle ) : bool

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.

SetChatAdministratorCustomTitle ( BotClient bot, string chatId, long userId, string customTitle ) : bool

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.

SetChatAdministratorCustomTitleAsync ( BotClient bot, long chatId, long userId, string customTitle, CancellationToken cancellationToken ) : Task

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.

SetChatAdministratorCustomTitleAsync ( BotClient bot, string chatId, long userId, string customTitle, CancellationToken cancellationToken ) : Task

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.

Method Details

SetChatAdministratorCustomTitle() public static method

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.
Thrown when a request to Telegram Bot API got an error response. Thrown when a required parameter is null.
public static SetChatAdministratorCustomTitle ( BotClient bot, long chatId, long userId, string customTitle ) : bool
bot BotClient Bot Client
chatId long Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).
userId long Unique identifier of the target user.
customTitle string New custom title for the administrator; 0-16 characters, emoji are not allowed.
return bool

SetChatAdministratorCustomTitle() public static method

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.
Thrown when a request to Telegram Bot API got an error response. Thrown when a required parameter is null.
public static SetChatAdministratorCustomTitle ( BotClient bot, string chatId, long userId, string customTitle ) : bool
bot BotClient Bot Client
chatId string Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).
userId long Unique identifier of the target user.
customTitle string New custom title for the administrator; 0-16 characters, emoji are not allowed.
return bool

SetChatAdministratorCustomTitleAsync() public static method

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.
Thrown when a request to Telegram Bot API got an error response. Thrown when a required parameter is null.
public static SetChatAdministratorCustomTitleAsync ( BotClient bot, long chatId, long userId, string customTitle, CancellationToken cancellationToken ) : Task
bot BotClient Bot Client
chatId long Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).
userId long Unique identifier of the target user.
customTitle string New custom title for the administrator; 0-16 characters, emoji are not allowed.
cancellationToken CancellationToken The cancellation token to cancel operation.
return Task

SetChatAdministratorCustomTitleAsync() public static method

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.
Thrown when a request to Telegram Bot API got an error response. Thrown when a required parameter is null.
public static SetChatAdministratorCustomTitleAsync ( BotClient bot, string chatId, long userId, string customTitle, CancellationToken cancellationToken ) : Task
bot BotClient Bot Client
chatId string Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).
userId long Unique identifier of the target user.
customTitle string New custom title for the administrator; 0-16 characters, emoji are not allowed.
cancellationToken CancellationToken The cancellation token to cancel operation.
return Task