A Telegram bot that syncs with Pylon to create issues from Telegram messages.
- Message @BotFather on Telegram
- Send
/newbotand follow the prompts - Save the bot token provided
Create a settings.toml file:
bot_admins = ["your_telegram_username"]
[tg_chats_to_pylon_accounts]
# Will be populated automatically when bot is added to chatsSet environment variables:
TELOXIDE_TOKEN=your_bot_token_from_botfather
PYLON_API_TOKEN=your_pylon_api_tokencargo runOptional flags:
--settings-path <PATH>- Path to settings file (default:./settings.toml)--logs-path <PATH>- Directory for log files
- Add the bot to a Telegram group
- Link the chat to a Pylon account
- Reply to any message with
/issue <title> - The bot will create a Pylon issue with the replied message content
Example:
/issue Bug in login flow
Admin commands work only in private chats with authorized users (configured in bot_admins).
/help- Show available commands/active- List all active chats linked to Pylon accounts/unlinked- List chats not yet linked to a Pylon account/orphans- List configured chats where the bot is no longer a member/link- Link a Telegram chat to a Pylon account (interactive)
- Send
/linkto the bot in a private chat - Select the chat from the inline keyboard
- Enter the Pylon account ID when prompted