

When set, this bot will only communicate about builders containing those tags. To get it, talk to your bot or add it to a Telegram group and issue /getid command.Īuthz = ( 'getid' : True, '' :, ( 'force', 'stop' ):, )Īnybody will be able to run the getid command, users with IDs 123412 will be allowed to run any safe command and the user with ID 123456 will also have the right to force and stop builds.

For channels it should have form and for private chats and groups it should be a numeric ID. List of chats IDs to send notifications specified in the notify_events parameter. For this reason it is advised to set this parameter to the correct value. However, in case of the connection problems, configuration of the Buildbot will be interrupted. If this parameter is missing, it will be retrieved from the Telegram server. This should be set to the the bot unique username defined in BotFather. The following parameters are accepted by this class: bot_tokenīot token given by BotFather. TelegramBot ( bot_token = 'bot_token_given_by_botfather', bot_username 'username_set_in_botfather_bot', chat_ids =, authz = notify_events =, usePolling = True ) c.

From ugins import reporters telegram = reporters.
