{"id":20163626,"url":"https://github.com/mortafix/autoconv-telegram-python","last_synced_at":"2025-07-30T21:14:16.586Z","repository":{"id":54822691,"uuid":"295654395","full_name":"Mortafix/AutoConv-Telegram-Python","owner":"Mortafix","description":"Python package to handle automatic conversation in a Telegram bot.","archived":false,"fork":false,"pushed_at":"2021-10-19T10:12:59.000Z","size":766,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T00:42:44.664Z","etag":null,"topics":["bot","python","telegram","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mortafix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-15T07:51:25.000Z","updated_at":"2024-06-23T12:00:37.000Z","dependencies_parsed_at":"2022-08-14T03:50:52.270Z","dependency_job_id":null,"html_url":"https://github.com/Mortafix/AutoConv-Telegram-Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mortafix%2FAutoConv-Telegram-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mortafix%2FAutoConv-Telegram-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mortafix%2FAutoConv-Telegram-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mortafix%2FAutoConv-Telegram-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mortafix","download_url":"https://codeload.github.com/Mortafix/AutoConv-Telegram-Python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137998,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","python","telegram","telegram-bot","telegram-bot-api"],"created_at":"2024-11-14T00:30:46.702Z","updated_at":"2025-04-10T00:42:49.691Z","avatar_url":"https://github.com/Mortafix.png","language":"Python","funding_links":["https://www.buymeacoffee.com/moris"],"categories":[],"sub_categories":[],"readme":"![PyPI - Python Version](https://img.shields.io/pypi/pyversions/telegram-autoconv)\n[![PyPI](https://img.shields.io/pypi/v/telegram-autoconv?color=red)](https://pypi.org/project/telegram-autoconv/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n![GitHub](https://img.shields.io/github/license/mortafix/autoconv-telegram-python)\n\n![Alt text](images/Autoconv-Text.jpg \"Autoconv\")\nWelcome to Autoconv!  \nA Python package that help you build complex Telegram bot conversations with buttons, actions and much more.  \nThis package is built over the awesome [Python-Telegram-Bot](https://python-telegram-bot.org)!\n\n# Setup\nYou can find the package on [PyPi (pip)](https://pypi.org/project/telegram-autoconv/).\n```\npip3 install telegram-autoconv\n```\n\n### Requirements\n* [Python 3.9+](https://www.python.org)\n* [python-telegram-bot 13+](https://github.com/python-telegram-bot/python-telegram-bot)\n\n# Examples\nI know you want examples, in fact there is a beautiful folder with some [examples](https://github.com/Mortafix/AutoConv-Telegram-Python/tree/master/examples).  \nIn the table below, you can find an example for every functions in the module.  \nIn addition to that, there is a live Telegram bot to showcase every features, [@AutoBot](https://t.me/autoconv_bot).\nFunction | Example | Documentation\n| :------------- | :---------- | :----------\n`add_keybord` | [keyboards.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/keyboards.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-keyboard)\n`add_text` | [actions.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/actions.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-text)\n`add_dynamic_text` | [actions.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/actions.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-dynamic-text)\n`add_action` | [actions.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/actions.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-action)\n`add_dynamic_keybord` | [keyboards.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/keyboards.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-dynamic-keyboard)\n`add_custom_keyboard` | [keyboards.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/keyboards.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-custom-keyboard)\n`add_dynamic_routes` | [keyboards.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/keyboards.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-dynamic-routes)\n`add_dynamic_list` | [dynamic_list.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/dynamic_list.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-dynamic-list)\n`add_custom_handler`| [handlers.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/handlers.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-custom-handler)\n`set_long_task`| [actions.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/actions.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#set-long-task)\n`add_refresh_auth`| [authorization.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/authorization.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-refresh-auth)\n`add_operation_buttons` | [keyboards.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/keyboards.py) | [State](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/State#add-operation-buttons)\n`Conversation` | [conversation.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/conversation.py) | [Conversation](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/Conversation#doc)\n`add_routes` | [conversation.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/conversation.py) | [Conversation](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/Conversation#add-routes)\n`set_defaults` | [defaults.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/defaults.py) | [Conversation](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/Conversation#set-defaults)\n`add_authorized_users` | [authorization.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/authorization.py) | [Conversation](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/Conversation#add-authorized-users)\n`state_messages` | [texts.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/texts.py) | [Texts Guide](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/Texts-Guide)\n`set_timed_function` | [async.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/async.py) | [AutoConvHandler](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/AutoConv-Handler#set-timed-function)\n`stop_timed_function` | [async.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/async.py) | [AutoConvHandler](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/AutoConv-Handler#stop-timed-function)\n`send_autodestroy_message` | [async.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/async.py) | [AutoConvHandler](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/AutoConv-Handler#send-autodestroy-message)\n`restart` | [autoconv_handler.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/autoconv_handler.py) | [AutoConvHandler](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/AutoConv-Handler#restart)\n`force_state` | [autoconv_handler.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/autoconv_handler.py) | [AutoConvHandler](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/AutoConv-Handler#force-state)\n`save` | [tdata.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/tdata.py) | [TelegamData](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/TelegramData#save)\n`add` | [tdata.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/tdata.py) | [TelegamData](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/TelegramData#add)\n`get_or_set` | [tdata.py](https://github.com/Mortafix/AutoConv-Telegram-Python/blob/master/examples/tdata.py) | [TelegamData](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki/TelegramData#get-or-set)\n\n# Persistence\nIf you want to use persistence in your bot, Autoconv provides a simple persistence based on PicklePersistence.  \nThe normal PicklePersistence doesn't work, due to an instance of a `Telegram.Message` in the `user_data`, this persistence uses a workaround.\n```python\nfrom autoconv.utils.persistence import AutoconvPersistence\npersistence = AutoconvPersistence(filename=\"bot_persistence\", bot_token=BOT_TOKEN)\nupdater = Updater(BOT_TOKEN, persistence=persistence)\n```\n\u003e WARNING! This persistence will save the bot token in a pickle file.\n\n# Documentation\nDo you want to read? I got you cover, baby!  \nNo more than a little documentation in the [Wiki](https://github.com/Mortafix/AutoConv-Telegram-Python/wiki).\n\n# Real World Example\nI have a simple movies info Telegram bot publicy available.  \nYou can interact with the Bot (the response time it kinda high, caused by very slow connection) [PopCorn](https://t.me/poppycorn_bot) (sorry for the italian).  \nThe code (except for the config files) is in this [GIST](https://gist.github.com/Mortafix/93a866c71040557c309f0115aa1a2767).\n\n----\n\n## Do you want to help me?\n\nIf you want to contribute you are welcome! I don't have guidelines for now, but contact me on Telegram [@Mortafix](https://t.me/mortafix).  \nIf you want to donate, thank you so much for your support!  \n\u003ca href=\"https://www.buymeacoffee.com/moris\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-yellow.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmortafix%2Fautoconv-telegram-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmortafix%2Fautoconv-telegram-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmortafix%2Fautoconv-telegram-python/lists"}