# /opt/vm-transcribe/telegram.conf # # Telegram delivery for voicemail notifications. # Reloaded on every voicemail - no restart needed after editing. # # chmod 640, owned root:asterisk - it contains a bot token. [telegram] # Master switch. Set to no to disable Telegram entirely (email still sends). enabled = yes # Bot token from @BotFather, e.g. 123456789:AAH... token = # Where to send when a mailbox has no [mailbox:N] section below. # Leave blank to send nothing for unmapped mailboxes. default_chat_id = # Attach the recording as a Telegram voice note (ogg/opus, plays inline). send_audio = yes # Include the full transcript as a follow-up message when it is longer # than the summary. Set to no for summary-only. send_transcript = yes # Seconds to wait on the Telegram API before giving up. Email is already # sent by this point, so a timeout is never fatal. timeout = 20 # --------------------------------------------------------------------------- # Per-mailbox routing. Section name is [mailbox:] # chat_id may be a comma-separated list to fan out to several people. # # To find a chat ID: message your bot, then visit # https://api.telegram.org/bot/getUpdates # and read result[].message.chat.id (negative numbers are groups). # # Any key from [telegram] can be overridden per mailbox. # --------------------------------------------------------------------------- # [mailbox:1001] # chat_id = 123456789 # [mailbox:1002] # chat_id = 987654321, 123456789 # send_transcript = no # [mailbox:1003] # chat_id = -1001234567890 # send_audio = no