TelegramBot.restrictChatMember

Restrict a user in a supergroup

  1. bool restrictChatMember(T chat_id, int user_id)
    struct TelegramBot
    @trusted
    bool
    restrictChatMember
    (
    T
    )
  2. bool restrictChatMember(RestrictChatMemberMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

user_id int

Unique identifier of the target user

Return Value

Type: bool

Sent Message

Throws

TelegramBotException on errors

See Also

Meta