Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
3 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 2 models 1 view 0 HTTP endpoints

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.

Dependencies

Odoo dependencies
OCA/social:
odoo/odoo:
- web
- bus
Python dependencies
cairosvg, lottie, python-telegram-bot
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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.