Repository
OCA/social · module folder · Try on Runboat
Module version
1.0.0
Category
Social
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/social
Last tracking update
2026-08-07 08:42:59
Authors
Odoo Community Association (OCA), Anmol Garg
Maintainers
Odoo Community Association (OCA), Anmol Garg
Committers
Weblate, OCA-git-bot, oca-ci, Anmol Garg
Odoo dependencies
OCA/social:
odoo/odoo:
- web
- bus
Python dependencies
cairosvg, lottie, python-telegram-bot
System dependencies
None
Required by
None
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 form Inherits mail_gateway.mail_gateway_form_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.