maxo maxo maxo
  • PyPI
  • DeepWiki
/

Начало работы

  • Начало работы

Обработка событий

  • Обзор
  • Диспетчер и роутеры
  • Фильтры
  • Мидлвари
  • Обработчики и аргументы
  • Состояния (FSM)
  • Фасады
  • Обработка ошибок
  • Сигналы
  • Long Polling
  • Webhooks
  • Инъекция бота в типы (BotMixin)

Диалоги (maxo.dialogs)

  • Обзор
  • Быстрый старт
  • Окна и диалоги
  • Виджеты
  • Переходы и навигация
  • Данные и контекст
  • Background Manager
  • Тестирование диалогов
  • Превью диалогов и переходов

API Reference

  • Bot API
    • Bot
    • Types
    • Methods
    • Omitted
    • Enums
    • Updates
    • Форматирование текста

Полезные заметки

  • Полезные заметки

Утилиты (maxo.utils)

  • Link Utility

Релизы

  • Changelog

On this page

  • create_max_link()
  • create_max_http_link()
  • id_to_message_url()
  • url_to_message_id()
K1rL3s/maxo 0 0
Edit this page
  1. maxo /
  2. Link Utility
View Source Open in ChatGPT Open in Claude

Link Utility¶

https://github.com/aiogram/aiogram/blob/dev-3.x/aiogram/utils/link.py.

Original code licensed under MIT by aiogram contributors

The MIT License (MIT)

Copyright (c) 2017 - present Alex Root Junior

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the «Software»), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

maxo.utils.link.create_max_link(link, **kwargs)[исходный код]¶
Параметры:
  • link (str)

  • kwargs (Any)

Тип результата:

str

maxo.utils.link.create_max_http_link(*path, **kwargs)[исходный код]¶
Параметры:
  • path (str)

  • kwargs (Any)

Тип результата:

str

maxo.utils.link.id_to_message_url(sequence_id, chat_id)[исходный код]¶

Преобразует числовой ID сообщения в ссылку на сообщение.

Параметры:
  • sequence_id (int)

  • chat_id (int)

Тип результата:

str

maxo.utils.link.url_to_message_id(url)[исходный код]¶

Обратное преобразование: из URL-safe base64 в числовой ID.

Параметры:

url (str)

Тип результата:

int

Previous
Полезные заметки
Next
Changelog

2026, Kirill Lesovoy

Made with Sphinx and Shibuya theme.