Telegram Standalone

mail_gateway_telegram_standalone
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/18.0/mail_gateway_telegram_standalone
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSocial
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Anmol Garg
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Anmol Garg
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Anmol Garg
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/social:
    - mail_gateway_telegram
    - mail_gateway
odoo/odoo:
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES cairosvg
lottie
python-telegram-bot
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module provides a generic engine to integrate Telegram Bots with Odoo. 
It serves as a foundation for other modules to send notifications, 
allowing you to manage bot tokens and authorized chat IDs in a centralized way.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
mail_gateway_view_form_inherit_mail_gateway_telegram_standalone mail.gateway.view.form.inherit.mail.gateway.telegram.standalone mail.gateway xpath Inherits mail_gateway.mail_gateway_form_view
Models touched (2)

New fields (1)
  • telegram_chat_ids One2many → telegram.chat
    string='Authorized Chats' args: 'telegram.chat', 'gateway_id'
Public methods (3)
  • action_fetch_chats(self)
    Automatically discovers Chat IDs of people who messaged the bot
  • action_test_connection(self)
    Button to test connection to all registered simple chats
  • send_message(self, chat_id, message, parse_mode='HTML')
    Low-level method to send a raw message via Telegram API

New fields (3)
  • chat_id Char
    help='Numeric ID from Telegram' required=True
  • gateway_id Many2one → mail.gateway
    ondelete='cascade' string='Mail Gateway' args: 'mail.gateway'
  • name Char
    help='Friendly name for the chat (e.g. Admin Group)' required=True
Public methods (0)

No public methods.