C# 클래스 Telegram.BotAPI.AvailableMethods.AvailableMethodsExtensions

파일 보기 프로젝트 열기: Eptagone/Telegram.BotAPI

공개 메소드들

메소드 설명
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.

메소드 상세

SetChatAdministratorCustomTitle() 공개 정적인 메소드

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.
리턴 bool

SetChatAdministratorCustomTitle() 공개 정적인 메소드

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.
리턴 bool

SetChatAdministratorCustomTitleAsync() 공개 정적인 메소드

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.
리턴 Task

SetChatAdministratorCustomTitleAsync() 공개 정적인 메소드

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.
리턴 Task