def set_chat_title(chat_id, title, **kwargs):
    """
    Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat
    for this to work and must have the appropriate admin rights.

    :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
    :param title: New chat title, 1-255 characters
    :param kwargs: Args that get passed down to :class:`TelegramBotRPCRequest`
    :return: Returns True on success.
    :rtype: bool
    """

    if len(title) > 255 or len(title) < 1:
        raise ValueError("Chat title must be 1 - 255 characters.")

    # required args
    params = dict(
        chat_id=chat_id,
        title=title
    )

    return TelegramBotRPCRequest('setChatTitle', params=params, on_result=lambda result: result, **kwargs)
def set_chat_title ( chat_id , title , ** kwargs ) : if len ( title ) > 255 or len ( title ) < 1 : raise ValueError ( "Chat title must be 1 - 255 characters." ) params = dict ( chat_id = chat_id , title = title ) return TelegramBotRPCRequest ( 'setChatTitle' , params = params , on_result = lambda result : result , ** kwargs )
Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat
    for this to work and must have the appropriate admin rights.

    :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
    :param title: New chat title, 1-255 characters
    :param kwargs: Args that get passed down to :class:`TelegramBotRPCRequest`
    :return: Returns True on success.
    :rtype: bool