diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..9586d11
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,74 @@
+# Create .env file based on this file and fill the variables.
+# cp .env.example .env
+
+# VK login and password.
+# Required if both KATE_TOKEN and VK_OFFICIAL_TOKEN not specified.
+VK_LOGIN=
+VK_PASSWORD=
+
+# Numeric id of VK community.
+# Required.
+VK_COMMUNITY_ID=
+
+# VK community token.
+# To obtain it:
+# 1. Go to your community page;
+# 2. "Manage" -> "API usage" -> "Access usage" -> "Create token";
+# 3. Select "Allow access to community management";
+# 4. Copy token and paste here.
+# Required.
+VK_COMMUNITY_TOKEN=
+
+# Title for your server (1-14 characters).
+# Required.
+VK_SERVER_TITLE=
+
+# Numeric id of main Telegram channel.
+# Required if channel is private.
+TGM_CHANNEL_ID=
+
+# Name of main Telegram channel.
+# Required if TGM_CHANNEL_ID not specified.
+TGM_CHANNEL_USERNAME=
+
+# Numeric id of playlist Telegram channel.
+# Optional if you don't need playlist channel,
+# otherwise required if channel is private.
+TGM_PL_CHANNEL_ID=
+
+# Name of playlist Telegram channel.
+# Optional if you don't need playlist channel,
+# otherwise required if TGM_PL_CHANNEL_ID not specified.
+TGM_PL_CHANNEL_USERNAME=
+
+# Phone number of Telegram client account.
+# Required if you need Telegram bot.
+TGM_CLIENT_PHONE=
+
+# Token of Telegram bot.
+# Read more: https://core.telegram.org/bots#6-botfather
+# Required.
+TGM_BOT_TOKEN=
+
+# Id and hash for your Telegram application.
+# Read more: https://core.telegram.org/api/obtaining_api_id
+# Required.
+TGM_API_ID=
+TGM_API_HASH=
+
+# Server URL, which will be used by VK for callback events.
+# Required.
+SERVER_URL=
+
+# VK user tokens.
+# Required if VK_LOGIN and VK_PASSWORD not specified, otherwise tokens will be auto generated.
+KATE_TOKEN=
+VK_OFFICIAL_TOKEN=
+
+# App's language
+# Default: "en"
+VTT_LANGUAGE=
+
+# VK API language
+# Default: value of VTT_LANGUAGE
+VK_API_LANGUAGE=
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a9e0d19
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
+venv
+.venv
+__pycache__
+vk_config.v2.json
+celeryconfig.py
+.env*
+!.env.example
+node_modules
+*.db
+*.session
+*.session-journal
+celerybeat-*
\ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..1ae747d
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,94 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "Python: Telegram Bot",
+ "type": "python",
+ "request": "launch",
+ "module": "app.bot.main",
+ "justMyCode": false
+ },
+ {
+ "name": "Python: VK Callback receiver",
+ "type": "python",
+ "request": "launch",
+ "module": "uvicorn",
+ "args": [
+ "app.main:app",
+ "--log-config",
+ "app/logging_config.yaml",
+ "--log-level",
+ "debug",
+ ],
+ "jinja": true,
+ "justMyCode": false
+ },
+ {
+ "name": "Python: Wall worker",
+ "type": "python",
+ "request": "launch",
+ "module": "celery",
+ "console": "integratedTerminal",
+ "args": [
+ "-A",
+ "app.celery_worker",
+ "worker",
+ "-Q",
+ "vtt-wall",
+ "-l",
+ "info",
+ "-P",
+ "solo",
+ ],
+ "justMyCode": false
+ },
+ {
+ "name": "Python: Playlist worker",
+ "type": "python",
+ "request": "launch",
+ "module": "celery",
+ "console": "integratedTerminal",
+ "args": [
+ "-A",
+ "app.celery_worker",
+ "worker",
+ "-Q",
+ "vtt-playlist",
+ "-l",
+ "info",
+ "-P",
+ "solo",
+ ],
+ "justMyCode": false
+ },
+ {
+ "name": "Python: DB cleanup scheduler",
+ "type": "python",
+ "request": "launch",
+ "module": "celery",
+ "console": "integratedTerminal",
+ "args": [
+ "-A",
+ "app.celery_worker",
+ "beat",
+ "-l",
+ "debug",
+ ],
+ "justMyCode": false
+ },
+ {
+ "name": "Python: Current File",
+ "type": "python",
+ "request": "launch",
+ "program": "${file}",
+ "console": "integratedTerminal",
+ "env": {
+ "PYTHONPATH": "${workspaceFolder}:${env:PYTHONPATH}"
+ },
+ "justMyCode": false
+ },
+ ]
+}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..24db465
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,11 @@
+{
+ "[python]": {
+ "editor.codeActionsOnSave": {
+ "source.organizeImports": true,
+ },
+ "editor.formatOnSave": true,
+ },
+ "python.linting.enabled": true,
+ "python.linting.flake8Enabled": true,
+ "python.formatting.provider": "black",
+}
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..f288702
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d306e37
--- /dev/null
+++ b/README.md
@@ -0,0 +1,65 @@
+# vk-to-tgm
+
+An application that forwards wall posts and playlists from VK community to Telegram channel.
+
+Consists of following services:
+- Server that receives VK Callback events
+- Telegram bot that forwards wall posts or playlists by user request
+- Celery worker that forwards wall posts
+- (optional) Celery worker that forwards playlists
+- Celery Beat service, that cleans up a SQLite3 database task results
+
+
+
+## Requirements:
+- Python 3.8+
+- RabbitMQ Server
+- FFmpeg
+- [VK community token with access to community management](https://vk.com/dev/access_token)
+- VK account
+- Telegram channel (and additional channel if you need playlists)
+- Telegram account
+- [Telegram bot token](https://core.telegram.org/bots#3-how-do-i-create-a-bot)
+- [Telegram application](https://core.telegram.org/api/obtaining_api_id)
+
+## What can it forward
+
+| VK | Telegram | Notes |
+|-------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Text | ✅ | Will be splitted into multpile messages if VK text is too big. |
+| Photo | ✅ | Will be posted with the largest size available. |
+| Video | ✅ | VK videos will be uploaded directly (up to 720p). External videos (YouTube, Vimeo, etc.) will be at the top in the form of links, so that the first one will be shown in the preview. |
+| Audio | ✅ | Will be posted in separate message. |
+| File | ✅ | Will be posted in separate message. |
+| Poll | ✅ | Will be posted in separate message. |
+| Market | ✅ | Will be in the form of link. |
+| Playlist | ✅ | Additional Telegram channel is required. There will be separate message in the main channel with the link to the message in the playlist channel, where audios will be uploaded. |
+| Link | ✅ | Will be shown just as VK link. |
+| Article | ✅ | Will be in the form of link. |
+| Poster | ✅ | Works the same way as with the photo. |
+| Graffiti | ✅ | Works the same way as with the photo. |
+| Map | ✅ | Will be posted in separate message. |
+| Live stream | ✅ | Will be posted at the top in the form of link. |
+
+**NOTE:** if post was edited in VK, it will NOT be edited in Telegram. As a workaround, you can delete old Telegram messages and reforward edited post through Telegram bot.
+
+## Example
+
+
+Working example: https://t.me/mashup_vk
+
+## Install
+Clone this repository and run `install.sh` script.
+
+If you want to install client SSL certificate, read [here](setup/ssl/README.md).
+
+## Uninstall
+Run `uninstall.sh` script.
+
+## Logs
+You can check logs in the `logs/` directory.
+
+## License
+GNU General Public License v3.0 or later.
+
+See [LICENSE](LICENSE) file.
diff --git a/app/__init__.py b/app/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/app/bot/__init__.py b/app/bot/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/app/bot/main.py b/app/bot/main.py
new file mode 100644
index 0000000..78a0138
--- /dev/null
+++ b/app/bot/main.py
@@ -0,0 +1,60 @@
+import asyncio
+import logging
+import os
+import sys
+from logging.handlers import RotatingFileHandler
+
+from aiohttp import ClientSession
+from telethon import TelegramClient
+from vkaudiotoken import supported_clients
+from vkbottle import AiohttpClient
+from vkbottle.api.api import API
+
+from app.bot import plugins
+from app.config import settings
+from app.utils.vk import VkLangRequestValidator
+
+logging.basicConfig(
+ format="%(levelname)s: %(asctime)s [%(name)s] %(message)s",
+ level=logging.INFO,
+ handlers=[
+ RotatingFileHandler(filename="logs/vtt-bot.log", maxBytes=1000000, backupCount=5),
+ logging.StreamHandler(),
+ ],
+)
+
+logger = logging.getLogger("bot.main")
+
+
+async def main():
+ vk_api = API(
+ token=settings.KATE_TOKEN,
+ http_client=AiohttpClient(
+ session=ClientSession(
+ headers={"User-agent": supported_clients.KATE.user_agent},
+ ),
+ ),
+ )
+ vk_api.request_validators.append(VkLangRequestValidator())
+
+ client = TelegramClient("tgm_search_client", settings.TGM_API_ID, settings.TGM_API_HASH)
+ await client.start(phone=lambda: settings.TGM_CLIENT_PHONE)
+
+ bot = TelegramClient("tgm_bot", settings.TGM_API_ID, settings.TGM_API_HASH)
+ await bot.start(bot_token=settings.TGM_BOT_TOKEN)
+
+ async with client:
+ await plugins.init(bot, client, vk_api)
+ await bot.run_until_disconnected()
+ await vk_api.http_client.close()
+
+
+if __name__ == "__main__":
+ try:
+ asyncio.run(main())
+ except KeyboardInterrupt:
+ logger.warning("Program interrupted by user.")
+ try:
+ sys.exit(0)
+ except SystemExit:
+ os._exit(0)
diff --git a/app/bot/plugins/__init__.py b/app/bot/plugins/__init__.py
new file mode 100644
index 0000000..bcabd64
--- /dev/null
+++ b/app/bot/plugins/__init__.py
@@ -0,0 +1,94 @@
+import asyncio
+import importlib
+import inspect
+import logging
+import os
+import time
+
+from telethon import events
+
+from app.bot.plugins.common import NewMessageEvent, check_permission, check_state
+from app.bot.state_manager import State
+from app.config import _, settings
+
+INCORRECT_LINK = (
+ _("INCORRECT_LINK")
+ + (
+ ":\n"
+ "\nvk.com/wall{owner_id}_{id}"
+ "\nm.vk.com/wall{owner_id}_{id}"
+ "\nhttps://vk.com/wall{owner_id}_{id}"
+ "\nhttps://m.vk.com/wall{owner_id}_{id}"
+ )
+ + (
+ "\nvk.com/music/album/{owner_id}_{id}"
+ "\nvk.com/music/playlist/{owner_id}_{id}"
+ "\nm.vk.com/audio?act=audio_playlist{owner_id}_{id}"
+ "\nhttps://vk.com/music/album/{owner_id}_{id}"
+ "\nhttps://vk.com/music/playlist/{owner_id}_{id}"
+ "\nhttps://m.vk.com/audio?act=audio_playlist{owner_id}_{id}"
+ )
+ if settings.TGM_PL_CHANNEL_ID
+ else ""
+)
+
+logger = logging.getLogger(__name__)
+
+
+async def init(bot, client, vk_api):
+ plugins = [
+ # Dynamically import
+ importlib.import_module(".", f"{__name__}.{file[:-3]}")
+ # All the files in the current directory
+ for file in os.listdir(os.path.dirname(__file__))
+ # If they start with a letter and are Python files
+ if file[0].isalpha() and file.endswith(".py")
+ ]
+
+ # Keep a mapping of module name to module for easy access inside the plugins
+ modules = {m.__name__.split(".")[-1]: m for m in plugins}
+
+ if not settings.TGM_PL_CHANNEL_ID:
+ modules.pop("playlist", None)
+
+ # All kwargs provided to get_init_args are those that plugins may access
+ to_init = (get_init_coro(plugin, bot=bot, client=client, vk_api=vk_api, modules=modules) for plugin in plugins)
+
+ # Plugins may not have a valid init so those need to be filtered out
+ await asyncio.gather(*(filter(None, to_init)))
+
+ @bot.on(events.NewMessage(func=lambda e: check_state(e, State.WAITING_FOR_LINK)))
+ async def incorrect_link(event: NewMessageEvent):
+ if not await check_permission(event):
+ raise events.StopPropagation
+
+ await event.respond(INCORRECT_LINK)
+ raise events.StopPropagation
+
+
+def get_init_coro(plugin, **kwargs):
+ p_init = getattr(plugin, "init", None)
+ if not callable(p_init):
+ return
+
+ result_kwargs = {}
+ sig = inspect.signature(p_init)
+ for param in sig.parameters:
+ if param in kwargs:
+ result_kwargs[param] = kwargs[param]
+ else:
+ logger.error("Plugin %s has unknown init parameter %s", plugin.__name__, param.__name__)
+ return
+
+ return _init_plugin(plugin, result_kwargs)
+
+
+async def _init_plugin(plugin, kwargs):
+ try:
+ logger.warning(f"Loading plugin {plugin.__name__}…")
+ start = time.time()
+ await plugin.init(**kwargs)
+ took = time.time() - start
+ logger.warning(f"Loaded plugin {plugin.__name__} (took {took:.2f}s)")
+ except Exception:
+ logger.exception(f"Failed to load plugin {plugin}")
diff --git a/app/bot/plugins/common.py b/app/bot/plugins/common.py
new file mode 100644
index 0000000..143e662
--- /dev/null
+++ b/app/bot/plugins/common.py
@@ -0,0 +1,90 @@
+import logging
+from enum import Enum
+from typing import Union
+
+from telethon import events
+from telethon.client.telegramclient import TelegramClient
+from telethon.errors.rpcbaseerrors import RPCError
+from telethon.tl.custom.button import Button
+from vkbottle.api.api import API
+
+from app.bot.state_manager import State, StateManager
+from app.config import _, settings
+
+logger = logging.getLogger(__name__)
+
+HELLO = _("HELLO")
+PERMISSION_CHECK_FAILED = _("PERMISSION_CHECK_FAILED")
+NO_PERMISSION = _("NO_PERMISSION")
+WAITING_FOR_LINK = _("WAITING_FOR_LINK")
+CANCELLED = _("CANCELLED")
+CLICK_BUTTON = _("CLICK_BUTTON")
+
+
+# Somewhat fixed type for NewMessage event
+NewMessageEvent = Union[events.NewMessage.Event, events.CallbackQuery.Event]
+
+# The state in which different users are, {user_id: state}
+conversation_state: "dict[int, Enum]" = {}
+
+state_manager = StateManager()
+
+
+def check_is_chat(event: NewMessageEvent):
+ return event.is_private
+
+
+async def check_state(event: NewMessageEvent, expected_state: State):
+ if not check_is_chat(event):
+ return False
+ current_state = state_manager.get_info(event.sender_id)[0]
+ return current_state == expected_state
+
+
+async def check_permission(event: NewMessageEvent):
+ sender = event.sender_id
+ client: TelegramClient = event.client
+ try:
+ perm = await client.get_permissions(settings.TGM_CHANNEL_ID, sender)
+ except RPCError as error:
+ logger.warning(f"Failed to check permissions: {error.message}")
+ await event.respond(PERMISSION_CHECK_FAILED, buttons=Button.clear())
+ return False
+ if perm and perm.post_messages:
+ return True
+ await event.respond(NO_PERMISSION, buttons=Button.clear())
+ return False
+
+
+async def init(bot: TelegramClient, client: TelegramClient, vk_api: API):
+ @bot.on(events.NewMessage(pattern="/start", func=check_is_chat))
+ async def start(event: NewMessageEvent):
+ await event.respond(HELLO)
+ if not await check_permission(event):
+ raise events.StopPropagation
+ state_manager.set_info(event.sender_id, State.WAITING_FOR_LINK)
+ await event.respond(WAITING_FOR_LINK)
+ raise events.StopPropagation
+
+ @bot.on(events.NewMessage(pattern="/cancel"))
+ async def cancel(event: events.CallbackQuery.Event):
+ state_manager.set_info(event.sender_id, State.WAITING_FOR_LINK)
+ await event.edit(buttons=Button.clear())
+ await event.respond(CANCELLED)
+ raise events.StopPropagation
+
+ @bot.on(events.CallbackQuery(data=b"cancel"))
+ async def btn_cancel(event: events.CallbackQuery.Event):
+ state_manager.set_info(event.sender_id, State.WAITING_FOR_LINK)
+ await event.edit(buttons=Button.clear())
+ await event.respond(CANCELLED)
+ raise events.StopPropagation
+
+ @bot.on(events.NewMessage(func=lambda e: check_state(e, State.WAITING_FOR_CHOISE)))
+ async def waiting_for_choice(event: NewMessageEvent):
+ if not await check_permission(event):
+ raise events.StopPropagation
+
+ data = state_manager.get_info(event.sender_id)[1]
+ await event.respond(CLICK_BUTTON, reply_to=data["choice_message"])
+ raise events.StopPropagation
diff --git a/app/bot/plugins/playlist.py b/app/bot/plugins/playlist.py
new file mode 100644
index 0000000..90e7966
--- /dev/null
+++ b/app/bot/plugins/playlist.py
@@ -0,0 +1,177 @@
+import re
+from urllib.parse import parse_qs, urlparse
+
+from telethon import events
+from telethon.client.telegramclient import TelegramClient
+from telethon.events import StopPropagation
+from telethon.tl.custom.button import Button
+from telethon.tl.functions.messages import SearchRequest
+from telethon.tl.patched import Message
+from telethon.tl.types import InputMessagesFilterUrl
+from telethon.tl.types.messages import ChannelMessages
+from vkbottle.api.api import API
+
+from app.bot.plugins.common import NewMessageEvent, check_permission, check_state, state_manager
+from app.bot.state_manager import State
+from app.celery_worker import forward_playlist
+from app.config import _, settings
+from app.utils.database import VttTaskType, get_queued_task
+from app.utils.telegram import get_entity_by_id
+from app.utils.vk import get_playlist
+
+PL_NOT_READY = _("PL_NOT_READY")
+PL_SEARCHING = _("PL_SEARCHING")
+PL_NOT_FOUND_IN_VK = _("PL_NOT_FOUND_IN_VK")
+PL_ALREADY_IN_THE_QUEUE = _("PL_ALREADY_IN_THE_QUEUE")
+PL_ALREADY_STARTED = _("PL_ALREADY_STARTED")
+PL_FOUND_IN_TGM = _("PL_FOUND_IN_TGM")
+PL_NOT_FOUND_IN_TGM = _("PL_NOT_FOUND_IN_TGM")
+PL_ADDED_TO_THE_QUEUE = _("PL_ADDED_TO_THE_QUEUE")
+PL_UNKNOWN_CHANNEL = _("PL_UNKNOWN_CHANNEL")
+PL_YES = _("PL_YES")
+PL_CANCEL = _("PL_CANCEL")
+
+pl_link_pattern = re.compile(
+ r"(https:\/\/)?(www\.)?(m\.)?vk\.com\/(music(/(playlist|album)|/?\?.+audio_playlist)|\w+/?\?.+audio_playlist)"
+)
+
+playlist_full_id = re.compile(r"(?P-?\d+)_(?P\d+)((_|\/)(?P[a-z0-9]+))?")
+
+
+async def init(bot: TelegramClient, client: TelegramClient, vk_api: API):
+
+ # Callback for playlist button in main channel
+ @bot.on(events.CallbackQuery(data=b"wait_for_pl_link"))
+ async def wait_for_pl_link(event: events.CallbackQuery.Event):
+ await event.answer(PL_NOT_READY)
+
+ @bot.on(events.CallbackQuery(data=b"pl_confirm", func=lambda e: check_state(e, State.WAITING_FOR_CHOISE)))
+ async def new_pl(event: events.CallbackQuery.Event):
+ await event.edit(buttons=Button.clear())
+ if not await check_permission(event):
+ raise events.StopPropagation
+
+ data = state_manager.get_info(event.sender_id)[1]
+ forward_playlist.delay(
+ owner_id=data["owner_id"],
+ playlist_id=data["playlist_id"],
+ access_key=data["access_key"],
+ )
+ state_manager.clear_info(event.sender_id)
+ await event.respond(PL_ADDED_TO_THE_QUEUE)
+ raise StopPropagation
+
+ @bot.on(events.NewMessage(pattern=pl_link_pattern, func=lambda e: check_state(e, State.WAITING_FOR_LINK)))
+ async def on_new_pl(event: NewMessageEvent):
+ if not await check_permission(event):
+ raise events.StopPropagation
+
+ await event.respond(PL_SEARCHING)
+ sender = event.sender_id
+ parsed_url = urlparse(event.message.message)
+ url_path = parsed_url.path
+ url_query = parse_qs(parsed_url.query)
+ full_id = ""
+
+ if url_path.startswith("/music/playlist/"):
+ full_id = url_path.split("/music/playlist/")[1]
+ elif url_path.startswith("/music/album/"):
+ full_id = url_path.split("/music/album/")[1]
+ elif url_query:
+ z = url_query.get("z")
+ act = url_query.get("act")
+ pl_unparsed = ""
+
+ if z and z[0].startswith("audio_playlist"):
+ pl_unparsed = z[0]
+ elif act and act[0].startswith("audio_playlist"):
+ pl_unparsed = act[0]
+
+ if pl_unparsed:
+ full_id = pl_unparsed.split("audio_playlist")[1]
+ else:
+ await event.respond("Icorrect link!")
+ raise StopPropagation
+ match = playlist_full_id.search(full_id)
+ groupdict = match.groupdict()
+ owner_id = groupdict.get("owner_id")
+ playlist_id = groupdict.get("playlist_id")
+ access_key = groupdict.get("access_key")
+
+ playlist = await get_playlist(vk_api, owner_id, playlist_id, access_key, with_audios=False)
+
+ if not playlist:
+ await event.respond(PL_NOT_FOUND_IN_VK)
+ raise StopPropagation
+
+ queued_task = get_queued_task(owner_id, playlist_id, VttTaskType.playlist)
+ if queued_task:
+ if queued_task.status == "SENT":
+ waiting_text = PL_ALREADY_IN_THE_QUEUE
+ else:
+ waiting_text = PL_ALREADY_STARTED
+ message = await event.respond(
+ waiting_text,
+ buttons=[
+ Button.inline(PL_YES, data="pl_confirm"),
+ Button.inline(PL_CANCEL, data=b"cancel"),
+ ],
+ )
+ state_manager.set_info(
+ sender,
+ State.WAITING_FOR_CHOISE,
+ {
+ "choice_message": message.id,
+ "owner_id": owner_id,
+ "playlist_id": playlist_id,
+ "access_key": access_key,
+ },
+ )
+ raise StopPropagation
+
+ peer = await get_entity_by_id(client, settings.TGM_PL_CHANNEL_ID)
+ if peer is None:
+ message = await event.respond(PL_UNKNOWN_CHANNEL)
+ state_manager.clear_info(event.sender_id)
+ raise StopPropagation
+ filter = InputMessagesFilterUrl()
+ search_result: ChannelMessages = await client(
+ SearchRequest(
+ peer=peer,
+ q=f"https://vk.com/music/playlist/{owner_id}_{playlist_id}",
+ filter=filter,
+ min_date=None,
+ max_date=None,
+ offset_id=0,
+ add_offset=0,
+ limit=1,
+ max_id=0,
+ min_id=0,
+ hash=0,
+ from_id=None,
+ )
+ )
+ waiting_text = PL_NOT_FOUND_IN_TGM
+ if search_result.messages:
+ waiting_text = PL_FOUND_IN_TGM
+ message: Message = search_result.messages[0]
+ await bot.forward_messages(sender, message.id, from_peer=message.chat_id)
+ message = await event.respond(
+ waiting_text,
+ buttons=[
+ Button.inline(PL_YES, data="pl_confirm"),
+ Button.inline(PL_CANCEL, data=b"cancel"),
+ ],
+ )
+
+ state_manager.set_info(
+ sender,
+ State.WAITING_FOR_CHOISE,
+ {
+ "choice_message": message.id,
+ "owner_id": owner_id,
+ "playlist_id": playlist_id,
+ "access_key": access_key,
+ },
+ )
+ raise StopPropagation
diff --git a/app/bot/plugins/wall.py b/app/bot/plugins/wall.py
new file mode 100644
index 0000000..711705a
--- /dev/null
+++ b/app/bot/plugins/wall.py
@@ -0,0 +1,148 @@
+import logging
+import re
+from typing import List, Union
+
+from telethon import Button, TelegramClient, events
+from telethon.events import StopPropagation
+from telethon.tl.functions.messages import SearchRequest
+from telethon.tl.patched import Message
+from telethon.tl.types import InputMessagesFilterUrl
+from telethon.tl.types.messages import ChannelMessages
+from vkbottle.api.api import API
+
+from app.bot.plugins.common import check_permission, check_state, state_manager
+from app.bot.state_manager import State
+from app.celery_worker import forward_wall
+from app.config import _, settings
+from app.utils.database import VttTaskType, get_queued_task
+from app.utils.telegram import get_entity_by_id
+
+logger = logging.getLogger(__name__)
+
+WALL_SEARCHING = _("WALL_SEARCHING")
+WALL_NOT_FOUND_IN_VK = _("WALL_NOT_FOUND_IN_VK")
+WALL_ALREADY_IN_THE_QUEUE = _("WALL_ALREADY_IN_THE_QUEUE")
+WALL_ALREADY_STARTED = _("WALL_ALREADY_STARTED")
+WALL_FOUND_IN_TGM = _("WALL_FOUND_IN_TGM")
+WALL_NOT_FOUND_IN_TGM = _("WALL_NOT_FOUND_IN_TGM")
+WALL_ADDED_TO_THE_QUEUE = _("WALL_ADDED_TO_THE_QUEUE")
+WALL_UNKNOWN_CHANNEL = _("WALL_UNKNOWN_CHANNEL")
+WALL_YES = _("WALL_YES")
+WALL_CANCEL = _("WALL_CANCEL")
+
+post_pattern = re.compile(r"(https:\/\/)?(www\.)?(m\.)?vk\.com(\/?|\/\w+\?w=)wall(?P-\d+)_(?P\d+)")
+
+# Somewhat fixed type for NewMessage event
+NewMessageEvent = Union[events.NewMessage.Event, events.CallbackQuery.Event]
+
+
+async def init(bot: TelegramClient, client: TelegramClient, vk_api: API):
+ @bot.on(events.CallbackQuery(data=b"wall_confirm", func=lambda e: check_state(e, State.WAITING_FOR_CHOISE)))
+ async def new_wall(event: NewMessageEvent):
+ await event.edit(buttons=Button.clear())
+ if not await check_permission(event):
+ raise events.StopPropagation
+
+ data = state_manager.get_info(event.sender_id)[1]
+ forward_wall.delay(
+ owner_id=data["owner_id"],
+ wall_id=data["id"],
+ )
+ await event.respond(WALL_ADDED_TO_THE_QUEUE)
+ state_manager.clear_info(event.sender_id)
+ raise StopPropagation
+
+ @bot.on(events.NewMessage(pattern=post_pattern, func=lambda e: check_state(e, State.WAITING_FOR_LINK)))
+ async def on_new_wall(event: NewMessageEvent):
+ if not await check_permission(event):
+ raise events.StopPropagation
+
+ await event.respond(WALL_SEARCHING)
+ sender = event.sender_id
+ match_dict = event.pattern_match.groupdict()
+ owner_id = int(match_dict["owner_id"])
+ id = int(match_dict["id"])
+
+ full_id = f"{owner_id}_{id}"
+
+ vk_wall_result: List[dict] = (
+ await vk_api.request(
+ "wall.getById",
+ {
+ "posts": full_id,
+ },
+ )
+ )["response"]
+ if not vk_wall_result:
+ await event.respond(WALL_NOT_FOUND_IN_VK)
+ raise StopPropagation
+
+ queued_task = get_queued_task(owner_id, id, VttTaskType.wall)
+ if queued_task:
+ if queued_task.status == "SENT":
+ waiting_text = WALL_ALREADY_IN_THE_QUEUE
+ else:
+ waiting_text = WALL_ALREADY_STARTED
+ message = await event.respond(
+ waiting_text,
+ buttons=[
+ Button.inline(WALL_YES, data="wall_confirm"),
+ Button.inline(WALL_CANCEL, data=b"cancel"),
+ ],
+ )
+ state_manager.set_info(
+ sender,
+ State.WAITING_FOR_CHOISE,
+ {
+ "choice_message": message.id,
+ "owner_id": owner_id,
+ "id": id,
+ },
+ )
+ raise StopPropagation
+
+ peer = await get_entity_by_id(client, settings.TGM_CHANNEL_ID)
+ if peer is None:
+ message = await event.respond(WALL_UNKNOWN_CHANNEL)
+ state_manager.clear_info(event.sender_id)
+ raise StopPropagation
+
+ filter = InputMessagesFilterUrl()
+ search_result: ChannelMessages = await client(
+ SearchRequest(
+ peer=peer,
+ q=f"https://vk.com/wall{full_id}",
+ filter=filter,
+ min_date=None,
+ max_date=None,
+ offset_id=0,
+ add_offset=0,
+ limit=1,
+ max_id=0,
+ min_id=0,
+ hash=0,
+ from_id=None,
+ )
+ )
+ waiting_text = WALL_NOT_FOUND_IN_TGM
+ if search_result.messages:
+ waiting_text = WALL_FOUND_IN_TGM
+ message: Message = search_result.messages[0]
+ await bot.forward_messages(sender, message.id, from_peer=message.chat_id)
+ message = await event.respond(
+ waiting_text,
+ buttons=[
+ Button.inline(WALL_YES, data="wall_confirm"),
+ Button.inline(WALL_CANCEL, data=b"cancel"),
+ ],
+ )
+ state_manager.set_info(
+ sender,
+ State.WAITING_FOR_CHOISE,
+ {
+ "choice_message": message.id,
+ "owner_id": owner_id,
+ "id": id,
+ },
+ )
+ raise StopPropagation
diff --git a/app/bot/state_manager.py b/app/bot/state_manager.py
new file mode 100644
index 0000000..e7d7d92
--- /dev/null
+++ b/app/bot/state_manager.py
@@ -0,0 +1,26 @@
+from enum import Enum, auto
+from typing import Dict, Optional, Tuple
+
+
+class State(Enum):
+ WAITING_FOR_LINK = auto()
+ LINK_SENT = auto()
+ WAITING_FOR_CHOISE = auto()
+
+
+class StateManager:
+ def __init__(self) -> None:
+ self._states: "Dict[int, Tuple[State, dict]]" = {}
+
+ def get_info(self, sender_id: int) -> Tuple[State, dict]:
+ info = self._states.get(sender_id)
+ if not info:
+ info = (State.WAITING_FOR_LINK, {})
+ self._states[sender_id] = info
+ return info
+
+ def set_info(self, sender_id: int, state: State, data: Optional[dict] = None) -> None:
+ self._states[sender_id] = (state, data or {})
+
+ def clear_info(self, sender_id: int) -> None:
+ self._states.pop(sender_id, None)
diff --git a/app/celery_worker.py b/app/celery_worker.py
new file mode 100644
index 0000000..3f54f6f
--- /dev/null
+++ b/app/celery_worker.py
@@ -0,0 +1,158 @@
+import asyncio
+import logging
+from typing import Optional, Tuple
+
+import uvloop
+from celery import Celery
+from celery.app.task import Context
+from celery.signals import before_task_publish
+from telethon import TelegramClient
+
+from app import celeryconfig
+from app.config import settings
+from app.handlers.playlist import PlaylistHandler
+from app.handlers.wall import WallHandler
+from app.utils.database import VttTaskType, vtt_store_result
+
+logger = logging.getLogger(__name__)
+
+asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
+
+worker = Celery("vk-to-tgm")
+worker.config_from_object(celeryconfig)
+
+
+@before_task_publish.connect
+def set_state_on_task_call(
+ headers: dict,
+ body: Tuple[dict, dict, dict],
+ routing_key: str,
+ **kwargs,
+):
+ task_name: str = headers["task"]
+ short_task_name = task_name.split(".")[-1]
+ if short_task_name not in ("forward_wall", "forward_playlist"):
+ return
+
+ task_id: str = headers["id"]
+ args: dict = body[0]
+ _kwargs: dict = body[1]
+ task_request = Context(
+ task=task_name,
+ args=args,
+ kwargs=_kwargs,
+ delivery_info={
+ "routing_key": routing_key,
+ },
+ )
+
+ if short_task_name == "forward_wall":
+ vk_type = VttTaskType.wall
+ vk_id = kwargs.get("wall_id")
+ elif short_task_name == "forward_playlist":
+ vk_type = VttTaskType.playlist
+ vk_id = kwargs.get("playlist_id")
+ else:
+ vk_type = VttTaskType.unknown
+ vk_id = 0
+
+ vtt_store_result(
+ vk_type=vk_type,
+ vk_owner_id=kwargs["owner_id"],
+ vk_id=vk_id,
+ task_uuid=task_id,
+ result=None,
+ state="SENT",
+ request=task_request,
+ )
+
+
+async def aio_forward_wall(
+ *,
+ owner_id: int,
+ wall_id: int,
+):
+ wall_url = f"https://vk.com/wall{owner_id}_{wall_id}"
+ logger.info(f"Handling wall task ({wall_url})...")
+
+ tgm_bot = TelegramClient("worker_bot", settings.TGM_API_ID, settings.TGM_API_HASH)
+ tgm_bot.parse_mode = "html"
+
+ async with await tgm_bot.start(bot_token=settings.TGM_BOT_TOKEN):
+ async with WallHandler(
+ owner_id,
+ wall_id,
+ tgm_bot,
+ ) as handler:
+ post_link = await handler.run()
+
+ logger.info(f"Wall task ({wall_url}) done.")
+
+ return post_link
+
+
+async def aio_forward_playlist(
+ *,
+ owner_id: int,
+ playlist_id: int,
+ access_key: Optional[str] = None,
+ reply_channel_id: Optional[int] = None,
+ reply_message_id: Optional[int] = None,
+):
+ pl_url = f"https://vk.com/music/playlist/{owner_id}_{playlist_id}_{access_key}"
+ logger.info(f"Handling task for forwarding playlist {pl_url}...")
+
+ tgm_bot = TelegramClient("worker_pl_bot", settings.TGM_API_ID, settings.TGM_API_HASH)
+ tgm_bot.parse_mode = "html"
+
+ async with await tgm_bot.start(bot_token=settings.TGM_BOT_TOKEN):
+ async with PlaylistHandler(
+ owner_id,
+ playlist_id,
+ access_key,
+ tgm_bot,
+ settings.KATE_TOKEN,
+ main_channel_id=reply_channel_id,
+ main_message_id=reply_message_id,
+ ) as handler:
+ post_link = await handler.run()
+
+ logger.info(f"Task for playlist ({pl_url}) done.")
+
+ return post_link
+
+
+@worker.task()
+def forward_wall(
+ *,
+ owner_id: int,
+ wall_id: int,
+):
+ result = asyncio.run(
+ aio_forward_wall(
+ owner_id=owner_id,
+ wall_id=wall_id,
+ )
+ )
+ return result
+
+
+@worker.task()
+def forward_playlist(
+ *,
+ owner_id: int,
+ playlist_id: int,
+ access_key: Optional[str] = None,
+ reply_channel_id: Optional[int] = None,
+ reply_message_id: Optional[int] = None,
+):
+ result = asyncio.run(
+ aio_forward_playlist(
+ owner_id=owner_id,
+ playlist_id=playlist_id,
+ access_key=access_key,
+ reply_channel_id=reply_channel_id,
+ reply_message_id=reply_message_id,
+ )
+ )
+ return result
diff --git a/app/celeryconfig.py.example b/app/celeryconfig.py.example
new file mode 100644
index 0000000..df2b3f9
--- /dev/null
+++ b/app/celeryconfig.py.example
@@ -0,0 +1,22 @@
+# Create .celeryconfig file based on this file. If you want, you can modify the variables.
+# cp .celeryconfig.py.example .celeryconfig.py
+
+# Broker settings.
+broker_url = "amqp://guest:guest@localhost:5672//"
+
+# Using the database to store task state and results.
+result_backend = "db+sqlite:///celery-results.db"
+
+task_track_started = True
+
+worker_cancel_long_running_tasks_on_connection_loss = True
+
+broker_pool_limit = 1
+broker_heartbeat = None
+task_acks_late = True
+worker_prefetch_multiplier = 1
+
+task_routes = {
+ "app.celery_worker.forward_wall": {"queue": "vtt-wall"},
+ "app.celery_worker.forward_playlist": {"queue": "vtt-playlist"},
+}
diff --git a/app/config.py b/app/config.py
new file mode 100644
index 0000000..57c5ea4
--- /dev/null
+++ b/app/config.py
@@ -0,0 +1,252 @@
+import asyncio
+import gettext
+import logging
+import re
+import secrets
+import sys
+
+from aiohttp import ClientSession
+from dotenv.main import set_key
+from pydantic import BaseSettings, root_validator, validator
+from telethon import TelegramClient
+from telethon.sessions import MemorySession
+from telethon.utils import get_peer_id
+from vkaudiotoken import TwoFAHelper, get_kate_token, get_vk_official_token, supported_clients
+from vkaudiotoken.CommonParams import CommonParams
+from vkaudiotoken.TokenException import TokenException
+from vkbottle import AiohttpClient
+from vkbottle.api.api import API
+from vkbottle.exception_factory import VKAPIError
+
+from app.utils.telegram import get_entity_by_username
+
+logger = logging.getLogger(__name__)
+
+vk_lang_pattern = re.compile(r"^(ru|uk|be|en|es|fi|de|it)$")
+
+
+async def get_tgm_channel_id(client: TelegramClient, key_to_set: str, channel_username: str):
+ entity = await get_entity_by_username(client, channel_username)
+ if not entity:
+ raise ValueError(f"Failed to get {key_to_set}.")
+ channel_id = get_peer_id(entity)
+ set_key(".env", key_to_set, channel_id, quote_mode="never")
+ return channel_id
+
+
+async def get_vk_token(
+ login: str,
+ password: str,
+ current_token: str = "",
+ exit_on_error: bool = False,
+ is_kate: bool = True,
+):
+ new_token: str = current_token
+ if is_kate:
+ user_agent = supported_clients.KATE.user_agent
+ get_token = get_kate_token
+ t_name = "KATE_TOKEN"
+ else:
+ user_agent = supported_clients.VK_OFFICIAL.user_agent
+ get_token = get_vk_official_token
+ t_name = "VK_OFFICIAL_TOKEN"
+ if not current_token:
+ if not login and not password:
+ logger.critical("Environment variables VK_LOGIN and VK_PASSWORD are required.")
+ sys.exit(1)
+ logger.info(f"[{t_name}] Getting new token...")
+ auth_code = "GET_CODE"
+ captcha_sid = None
+ captcha_key = None
+ while True:
+ try:
+ new_token = get_token(
+ login,
+ password,
+ auth_code=auth_code,
+ captcha_sid=captcha_sid,
+ captcha_key=captcha_key,
+ )["token"]
+ if new_token:
+ set_key(".env", t_name, new_token)
+ break
+ except TokenException as err:
+ err_code: int = err.code
+ err_extra: dict = err.extra or {}
+ if err_code == TokenException.TOKEN_NOT_RECEIVED:
+ auth_code = "GET_CODE"
+ captcha_sid = None
+ captcha_key = None
+ continue
+ if err_code == TokenException.CAPTCHA_REQ and "captcha_sid" in err_extra:
+ captcha_sid = err_extra["captcha_sid"]
+ captcha_key = input("Enter captcha key from image (" + err_extra["captcha_img"] + "): ")
+ continue
+ if err_code == TokenException.TWOFA_REQ and "validation_sid" in err_extra:
+ params = CommonParams(user_agent)
+ try:
+ TwoFAHelper(params).validate_phone(err_extra["validation_sid"])
+ logger.warning("SMS should be sent")
+ except TokenException as error:
+ error_extra: dict = error.extra or {}
+ error_obj: dict = error_extra.get("error", {})
+ error_code = error_obj.get("error_code") if error_obj else None
+ if error_code is None or error_code != 103:
+ raise
+ while True:
+ try:
+ auth_code = str(int(input(f"[{t_name}] Enter auth code: ")))
+ break
+ except ValueError:
+ logger.warning("Please enter integer code.")
+ else:
+ raise
+
+ vk_user = API(
+ token=new_token,
+ http_client=AiohttpClient(session=ClientSession(headers={"User-agent": user_agent})),
+ )
+ try:
+ logger.info(f"[{t_name}] Checking if token is valid...")
+ await vk_user.users.get()
+ logger.info(f"[{t_name}] Token is valid.")
+ except VKAPIError[5] as error:
+ err_msg = error.description
+ logger.warning(f"[{t_name}] Token is not valid: {err_msg}")
+ if exit_on_error:
+ sys.exit(err_msg)
+ else:
+ new_token = await get_vk_token("", login, password, exit_on_error=True, is_kate=is_kate)
+ finally:
+ await vk_user.http_client.close()
+ return new_token
+
+
+class Settings(BaseSettings):
+ VK_LOGIN: str = ""
+ VK_PASSWORD: str = ""
+
+ VK_COMMUNITY_ID: int
+ VK_COMMUNITY_TOKEN: str
+
+ VK_SERVER_TITLE: str
+ VK_SERVER_SECRET: str = secrets.token_hex(25)
+
+ # Id is 0 by default for root_validator
+ TGM_CHANNEL_ID: int = 0
+ TGM_CHANNEL_USERNAME: str = ""
+ TGM_PL_CHANNEL_ID: int = 0
+ TGM_PL_CHANNEL_USERNAME: str = ""
+
+ TGM_CLIENT_PHONE: str = ""
+ TGM_BOT_TOKEN: str
+
+ TGM_API_ID: int
+ TGM_API_HASH: str
+
+ SERVER_URL: str
+
+ KATE_TOKEN: str = ""
+ VK_OFFICIAL_TOKEN: str = ""
+
+ VTT_LANGUAGE: str = "en"
+ VK_API_LANGUAGE: str = ""
+
+ @validator("VK_SERVER_TITLE")
+ def check_vk_server_title(cls, value: str):
+ title_length = len(value)
+ if title_length < 1 or title_length > 14:
+ raise ValueError("VK_SERVER_TITLE must have length of 1-14 characters.")
+ return value
+
+ @validator("SERVER_URL")
+ def check_server_url(cls, value: str):
+ if not re.fullmatch(r"^https?://.*", value):
+ raise ValueError("SERVER_URL must start with 'http[s]://'.")
+ if not value.endswith("/"):
+ value = f"{value}/"
+ return value
+
+ @validator("VTT_LANGUAGE")
+ def check_vtt_lang(cls, value: str):
+ if not gettext.find("vtt", "locale", languages=[value]):
+ raise ValueError("No such locale available for VTT_LANGUAGE.")
+ return value
+
+ @validator("VK_API_LANGUAGE")
+ def check_vk_api_lang(cls, value: str):
+ if value and not vk_lang_pattern.fullmatch(value):
+ raise ValueError("No such locale available for VK_API_LANGUAGE.")
+ return value
+
+ @staticmethod
+ async def _async_check_all(values: dict):
+ if not values["VK_API_LANGUAGE"]:
+ VTT_LANGUAGE: str = values["VTT_LANGUAGE"]
+ if vk_lang_pattern.fullmatch(VTT_LANGUAGE):
+ values["VK_API_LANGUAGE"] = VTT_LANGUAGE
+ else:
+ values["VK_API_LANGUAGE"] = "en"
+
+ TGM_CHANNEL_ID: str = values["TGM_CHANNEL_ID"]
+ TGM_PL_CHANNEL_ID: str = values["TGM_PL_CHANNEL_ID"]
+ if not TGM_CHANNEL_ID or not TGM_PL_CHANNEL_ID:
+ client = TelegramClient(MemorySession(), values["TGM_API_ID"], values["TGM_API_HASH"])
+ async with await client.start(bot_token=values["TGM_BOT_TOKEN"]): # type: ignore
+ if not TGM_CHANNEL_ID:
+ TGM_CHANNEL_USERNAME: str = values["TGM_CHANNEL_USERNAME"]
+ if not TGM_CHANNEL_USERNAME:
+ raise ValueError("TGM_CHANNEL_ID or TGM_CHANNEL_USERNAME is required.")
+ values["TGM_CHANNEL_ID"] = await get_tgm_channel_id(
+ client=client,
+ key_to_set="TGM_CHANNEL_ID",
+ channel_username=TGM_CHANNEL_USERNAME,
+ )
+
+ TGM_PL_CHANNEL_USERNAME: str = values["TGM_PL_CHANNEL_USERNAME"]
+ if not TGM_PL_CHANNEL_ID and TGM_PL_CHANNEL_USERNAME:
+ TGM_PL_CHANNEL_ID = await get_tgm_channel_id(
+ client=client,
+ key_to_set="TGM_PL_CHANNEL_ID",
+ channel_username=TGM_PL_CHANNEL_USERNAME,
+ )
+
+ VK_LOGIN: str = values["VK_LOGIN"]
+ VK_PASSWORD: str = values["VK_PASSWORD"]
+ KATE_TOKEN: str = values["KATE_TOKEN"]
+ VK_OFFICIAL_TOKEN: str = values["VK_OFFICIAL_TOKEN"]
+ if not KATE_TOKEN or not VK_OFFICIAL_TOKEN:
+ if not VK_LOGIN or not VK_PASSWORD:
+ raise ValueError("Either VK_LOGIN and VK_PASSWORD or KATE_TOKEN and VK_OFFICIAL_TOKEN are required.")
+ values["KATE_TOKEN"] = await get_vk_token(
+ VK_LOGIN,
+ VK_PASSWORD,
+ KATE_TOKEN,
+ )
+ values["VK_OFFICIAL_TOKEN"] = await get_vk_token(
+ VK_LOGIN,
+ VK_PASSWORD,
+ VK_OFFICIAL_TOKEN,
+ is_kate=False,
+ )
+
+ @root_validator(skip_on_failure=True)
+ def check_all(cls, values: dict):
+ loop = asyncio.get_event_loop()
+ if loop.is_running():
+ loop.create_task(cls._async_check_all(values))
+ else:
+ loop.run_until_complete(cls._async_check_all(values))
+ return values
+
+ def __init__(self, **kwargs) -> None:
+ super().__init__(**kwargs)
+
+ class Config:
+ env_file = ".env"
+ env_file_encoding = "utf-8"
+
+
+settings = Settings()
+
+_ = gettext.translation("vtt", "locale", languages=[settings.VTT_LANGUAGE]).gettext
diff --git a/app/gunicorn_worker.py b/app/gunicorn_worker.py
new file mode 100644
index 0000000..3f8a37b
--- /dev/null
+++ b/app/gunicorn_worker.py
@@ -0,0 +1,7 @@
+from uvicorn.workers import UvicornWorker
+
+
+class MyUvicornWorker(UvicornWorker):
+ CONFIG_KWARGS = {
+ "log_config": "app/logging_config.yaml",
+ }
diff --git a/app/handlers/__init__.py b/app/handlers/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/app/handlers/playlist.py b/app/handlers/playlist.py
new file mode 100644
index 0000000..206cf39
--- /dev/null
+++ b/app/handlers/playlist.py
@@ -0,0 +1,161 @@
+import logging
+from typing import Optional
+
+from aiohttp import ClientSession
+from telethon.client.telegramclient import TelegramClient
+from telethon.tl.custom.button import Button
+from telethon.tl.types import Message
+from vkaudiotoken import supported_clients
+from vkbottle import AiohttpClient
+from vkbottle.api.api import API
+
+from app.config import _, settings
+from app.handlers.text import PlaylistTextHandler
+from app.schemas.vk import AudioPlaylist
+from app.utils.downloader import Downloader
+from app.utils.telegram import get_message_link
+from app.utils.vk import VkLangRequestValidator, get_playlist
+
+logger = logging.getLogger(__name__)
+
+PL_READY = _("PL_READY")
+PL_GO_TO_WALL = _("PL_GO_TO_WALL")
+PL_OF = _("PL_OF")
+
+
+class PlaylistHandler:
+ def __init__(
+ self,
+ owner_id: int,
+ playlist_id: int,
+ access_key: Optional[str],
+ tgm_bot: TelegramClient,
+ kate_token: str,
+ main_channel_id: Optional[int] = None,
+ main_message_id: Optional[int] = None,
+ ) -> None:
+ self.pl_channel_id = settings.TGM_PL_CHANNEL_ID
+ self.owner_id = owner_id
+ self.playlist_id = playlist_id
+ self.access_key = access_key
+ self.main_channel_id = main_channel_id
+ self.main_message_id = main_message_id
+ self.tgm_bot = tgm_bot
+ self.kate_user = API(
+ token=kate_token,
+ http_client=AiohttpClient(
+ session=ClientSession(
+ headers={"User-agent": supported_clients.KATE.user_agent},
+ ),
+ ),
+ )
+ self.kate_user.request_validators.append(VkLangRequestValidator())
+
+ self.vk_user = API(
+ token=settings.VK_OFFICIAL_TOKEN,
+ http_client=AiohttpClient(
+ session=ClientSession(
+ headers={"User-agent": supported_clients.VK_OFFICIAL.user_agent},
+ ),
+ ),
+ )
+ self.vk_user.request_validators.append(VkLangRequestValidator())
+
+ async def __aenter__(self):
+ return self
+
+ async def __aexit__(self, exc_type, exc_value, traceback):
+ await self.kate_user.http_client.close()
+ await self.vk_user.http_client.close()
+
+ async def get_text(
+ self,
+ playlist: AudioPlaylist,
+ ):
+ text = PlaylistTextHandler(self.kate_user, playlist)
+ await text.process_text()
+ return text
+
+ async def run(self) -> str:
+ playlist = await get_playlist(
+ self.kate_user,
+ self.owner_id,
+ self.playlist_id,
+ self.access_key,
+ )
+
+ if not playlist:
+ full_id = f"{self.owner_id}_{self.playlist_id}_{self.access_key}"
+ logger.warning(f"[{full_id}] Playlist not found.")
+ return "NOT_FOUND"
+
+ logger.info(f"[{playlist.full_id}] Sending main playlist message...")
+ pl_captions = (await self.get_text(playlist)).caption
+ pl_captions_first = pl_captions[0] if pl_captions else None
+ pl_captions_first_text = pl_captions_first[0] if pl_captions_first else ""
+ pl_captions_first_entities = pl_captions_first[1] if pl_captions_first else None
+ async with Downloader() as downloader:
+ downloaded_photo = None
+ if playlist.photo:
+ downloaded_photo = await downloader.download_media(playlist.photo)
+ pl_main_message = await self.tgm_bot.send_message(
+ self.pl_channel_id,
+ file=downloaded_photo,
+ message=pl_captions_first_text,
+ formatting_entities=pl_captions_first_entities,
+ link_preview=False,
+ )
+
+ if self.main_channel_id and self.main_message_id:
+ logger.info(f"[{playlist.full_id}] Setting links between playlist and main message...")
+ main_post_link = get_message_link(
+ await self.tgm_bot.get_entity(self.main_channel_id),
+ self.main_message_id,
+ )
+ pl_main_message = await self.tgm_bot.edit_message(
+ pl_main_message,
+ buttons=Button.url(f"🔗 {PL_GO_TO_WALL}", main_post_link),
+ )
+
+ pl_post_link = get_message_link(
+ await self.tgm_bot.get_entity(self.pl_channel_id),
+ pl_main_message.id,
+ )
+ main_message: Message = await self.tgm_bot.get_messages(
+ self.main_channel_id,
+ ids=self.main_message_id,
+ )
+ await self.tgm_bot.edit_message(
+ main_message,
+ buttons=Button.url(f"🔊 {PL_READY}", pl_post_link),
+ )
+
+ logger.info(f"[{playlist.full_id}] Sending rest playlist messages...")
+ rest_messages = pl_captions[1:]
+ for text, entities in rest_messages:
+ await self.tgm_bot.send_message(
+ self.pl_channel_id,
+ message=text,
+ formatting_entities=entities,
+ link_preview=False,
+ reply_to=pl_main_message,
+ )
+
+ logger.info(f"[{playlist.full_id}] Uploading playlist audios...")
+ pl_length = len(playlist.audios)
+ for i in range(0, pl_length, 10):
+ current_audios = playlist.audios[i : i + 10] # noqa: E203
+ current_audios_len = len(current_audios)
+ pl_audio_caption = [""] * (current_audios_len - 1) + [
+ f"{i + 1}-{i + current_audios_len} {PL_OF} {pl_length}"
+ ]
+ async with Downloader() as downloader:
+ current_audios_paths = await downloader.download_audios(current_audios, self.vk_user)
+ await self.tgm_bot.send_file(
+ self.pl_channel_id,
+ file=current_audios_paths,
+ caption=pl_audio_caption,
+ voice_note=True,
+ reply_to=pl_main_message,
+ )
+ return get_message_link(await self.tgm_bot.get_entity(self.pl_channel_id), pl_main_message.id)
diff --git a/app/handlers/text.py b/app/handlers/text.py
new file mode 100644
index 0000000..0be9b30
--- /dev/null
+++ b/app/handlers/text.py
@@ -0,0 +1,176 @@
+import html
+import re
+from typing import List, Optional, Tuple
+
+from telethon.tl.types import TypeMessageEntity
+from vkbottle.api.api import API
+from vkbottle_types.objects import GroupsGroupFull, WallPostType, WallWallpostFull
+
+from app.config import _
+from app.schemas.vk import Attachments, AudioPlaylist
+from app.utils.telegram import get_html_link, split_text
+
+link_pattern = re.compile(r"\[(?P[^\[|]+)\|(?P[^\]]+)\]")
+vk_id_pattern = re.compile(r"(id|club)\d+")
+vk_link_pattern = re.compile(r"(https?:\/\/)?(m\.)?vk\.com(\/[\w\-\.~:\/?#[\]@&()*+,;%=\"ёЁа-яА-Я]*)?")
+
+SOURCE = _("SOURCE")
+VK_POST = _("VK_POST")
+VK_REPOST = _("VK_REPOST")
+VK_PLAYLIST = _("VK_PLAYLIST")
+
+
+class BaseTextHandler:
+ def _convert_to_html_link(self, match: re.Match):
+ groupdict = match.groupdict()
+ url: str = groupdict.get("url")
+ title: str = groupdict.get("title")
+
+ if vk_id_pattern.fullmatch(url):
+ url = "https://vk.com/" + url
+
+ if vk_link_pattern.fullmatch(url):
+ return f'{title}'
+
+ return f"[{url}|{title}]"
+
+ def convert_vk_links(self, text: str):
+ # Convert VK links to HTML links
+ safe_text = html.escape(text.encode("raw_unicode_escape").decode("unicode_escape"))
+ return link_pattern.sub(self._convert_to_html_link, safe_text)
+
+
+class WallTextHandler(BaseTextHandler):
+ def __init__(
+ self,
+ vk_api: API,
+ wall: WallWallpostFull,
+ attachments: Attachments,
+ is_repost=False,
+ groups: Optional[List[GroupsGroupFull]] = None,
+ ) -> None:
+ self._vk_api = vk_api
+ self._wall = wall
+ self._groups = groups or []
+ self._attachments = attachments
+ self._is_repost = is_repost
+
+ self.header = ""
+ self.footer = ""
+
+ self._message = ""
+ self._caption = ""
+
+ async def process_text(self) -> None:
+ wall = self._wall
+ attachments = self._attachments
+
+ header_text = ""
+ footer_text = ""
+
+ # Videos are at the top for the web page preview
+ if attachments.videos:
+ for video in attachments.videos:
+ if video.platform or video.is_live:
+ header_text += f"\n📺 {get_html_link(video.url, video.title)}"
+
+ if wall.text:
+ processed_wall_text = self.convert_vk_links(wall.text)
+
+ if header_text:
+ header_text += "\n\n"
+ header_text += processed_wall_text
+
+ post_type = wall.post_type
+ if post_type == WallPostType.REPLY:
+ commentator_id = wall.from_id
+ if commentator_id < 0:
+ group_id = str(abs(commentator_id))
+ commentator = (await self._vk_api.groups.get_by_id(group_id=group_id))[0]
+ commentator_href = f"https://vk.com/public{group_id}"
+ commentator_fullname = commentator.name
+ else:
+ commentator = (await self._vk_api.users.get(user_ids=[commentator_id]))[0]
+ commentator_href = f"https://vk.com/id{commentator_id}"
+ commentator_fullname = f"{commentator.first_name} {commentator.last_name}"
+ footer_text += f"\n\n📝 {get_html_link(commentator_href, commentator_fullname)}"
+
+ if attachments.market:
+ att_market = attachments.market
+ owner_id = att_market.owner_id
+ market_link = f"https://vk.com/market{owner_id}?w=product{owner_id}_{att_market.id}"
+ footer_text += f"\n\n🛍️ {get_html_link(market_link, att_market.title)}"
+
+ if attachments.link:
+ att_link = attachments.link
+ footer_text += f"\n\n🔗 {get_html_link(att_link.url, att_link.caption)}"
+
+ if wall.copyright:
+ copyright = wall.copyright
+ footer_text += f'\n\n📎 {get_html_link(copyright.link, f"{SOURCE}: {copyright.name}")}'
+
+ if wall.signer_id:
+ signer_id = wall.signer_id
+ signer = (await self._vk_api.users.get(user_ids=[signer_id]))[0]
+ signer_fullname = f"{signer.first_name} {signer.last_name}"
+ footer_text += f'\n\n👤 {get_html_link(f"https://vk.com/id{signer_id}", signer_fullname)}'
+
+ vk_link = ""
+ post_href = f"https://vk.com/wall{wall.owner_id}_{wall.id}"
+ if self._is_repost:
+ if post_type == WallPostType.VIDEO:
+ post_href = f"https://vk.com/video{wall.owner_id}_{wall.id}"
+ elif post_type == WallPostType.PHOTO:
+ post_href = f"https://vk.com/photo{wall.owner_id}_{wall.id}"
+
+ repost_text = VK_REPOST
+ group_name = next((group.name for group in self._groups if group.id == abs(wall.owner_id)), None)
+ if group_name:
+ repost_text += f": {group_name}"
+ vk_link = f"\n\n🔁 {get_html_link(post_href, repost_text)}"
+ else:
+ vk_link = f"\n\n📌 {get_html_link(post_href, VK_POST)}"
+ footer_text += vk_link
+
+ self.header = header_text
+ self.footer = footer_text
+
+ @property
+ def message(self) -> List[Tuple[str, List[TypeMessageEntity]]]:
+ return split_text(self.header, self.footer)
+
+ @property
+ def caption(self) -> List[Tuple[str, List[TypeMessageEntity]]]:
+ return split_text(self.header, self.footer, is_caption=True)
+
+
+class PlaylistTextHandler(BaseTextHandler):
+ def __init__(
+ self,
+ vk_api: API,
+ playlist: AudioPlaylist,
+ ) -> None:
+ self._vk_api = vk_api
+ self._playlist = playlist
+
+ self.header = ""
+ self.footer = ""
+
+ self._caption = ""
+
+ async def process_text(self) -> None:
+ header = self._playlist.title
+ if self._playlist.description:
+ header += f"\n\n{self.convert_vk_links(self._playlist.description)}"
+
+ post_href = f"https://vk.com/music/playlist/{self._playlist.owner_id}_{self._playlist.id}"
+ if self._playlist.access_key:
+ post_href += f"_{self._playlist.access_key}"
+ vk_link = f"\n\n📌 {get_html_link(post_href, VK_PLAYLIST)}"
+
+ self.header = header
+ self.footer = vk_link
+
+ @property
+ def caption(self) -> List[Tuple[str, List[TypeMessageEntity]]]:
+ return split_text(self.header, self.footer, is_caption=True)
diff --git a/app/handlers/wall.py b/app/handlers/wall.py
new file mode 100644
index 0000000..3e3b737
--- /dev/null
+++ b/app/handlers/wall.py
@@ -0,0 +1,531 @@
+import logging
+import re
+from typing import List, Optional
+from urllib.parse import parse_qs, urlparse
+
+import vkbottle_types
+from aiohttp import ClientSession
+from telethon.client.telegramclient import TelegramClient
+from telethon.extensions import html
+from telethon.tl.custom.button import Button
+from telethon.tl.types import InputGeoPoint, InputMediaGeoLive, InputMediaPoll, Message, Poll, PollAnswer
+from vkaudiotoken import supported_clients
+from vkbottle import AiohttpClient
+from vkbottle.api.api import API
+from vkbottle_types.objects import (
+ AudioAudio,
+ BasePropertyExists,
+ GroupsGroupFull,
+ WallWallpostAttachmentType,
+ WallWallpostFull,
+)
+
+from app.config import _, settings
+from app.handlers.text import PlaylistTextHandler, WallTextHandler
+from app.schemas.vk import Attachments, AudioPlaylist, Document, VttLink, VttMarket, VttVideo
+from app.utils.downloader import Downloader
+from app.utils.telegram import get_message_link
+from app.utils.vk import VkLangRequestValidator, get_extended_wall, get_photo_url, get_playlist, get_video_url
+
+logger = logging.getLogger(__name__)
+
+PL_SOON = _("PL_SOON")
+
+
+class WallHandler:
+ API_VERSION = vkbottle_types.API_VERSION
+ MAX_MESSAGE_LENGTH = 4096
+
+ def __init__(
+ self,
+ owner_id: int,
+ id: int,
+ tgm_bot: TelegramClient,
+ ) -> None:
+ self.channel_id = settings.TGM_CHANNEL_ID
+ self.pl_channel_id = settings.TGM_PL_CHANNEL_ID
+ self.tgm_bot = tgm_bot
+
+ self.owner_id = owner_id
+ self.wall_id = id
+ self.groups: Optional[List[GroupsGroupFull]] = None
+
+ self.kate_user = API(
+ token=settings.KATE_TOKEN,
+ http_client=AiohttpClient(
+ session=ClientSession(
+ headers={"User-agent": supported_clients.KATE.user_agent},
+ ),
+ ),
+ )
+ self.kate_user.request_validators.append(VkLangRequestValidator())
+
+ self.vk_user = API(
+ token=settings.VK_OFFICIAL_TOKEN,
+ http_client=AiohttpClient(
+ session=ClientSession(
+ headers={"User-agent": supported_clients.VK_OFFICIAL.user_agent},
+ ),
+ ),
+ )
+ self.vk_user.request_validators.append(VkLangRequestValidator())
+
+ async def __aenter__(self):
+ return self
+
+ async def __aexit__(self, exc_type, exc_value, traceback):
+ await self.kate_user.http_client.close()
+ await self.vk_user.http_client.close()
+
+ async def collect_attachments(self, wall: WallWallpostFull) -> Attachments:
+ attachments = Attachments()
+
+ if not wall.attachments:
+ return attachments
+ logger.info("Collecting attachments...")
+
+ audio_ids: List[str] = []
+ video_ids: List[str] = []
+ for attachment in wall.attachments:
+ attachment_type = attachment.type
+ if attachment_type == WallWallpostAttachmentType.PHOTO:
+ photo = attachment.photo
+ if not photo:
+ continue
+ photo_url = get_photo_url(photo.sizes)
+ if not photo_url:
+ continue
+ attachments.photos.append(photo_url)
+ elif attachment_type == WallWallpostAttachmentType.AUDIO:
+ audio = attachment.audio
+ if not audio:
+ continue
+ audio_ids.append(f"{audio.owner_id}_{audio.id}_{audio.access_key}")
+ elif attachment_type == WallWallpostAttachmentType.VIDEO:
+ video = attachment.video
+ if not video:
+ continue
+ video_ids.append(f"{video.owner_id}_{video.id}_{video.access_key}")
+ elif attachment_type == WallWallpostAttachmentType.DOC:
+ document = attachment.doc
+ if not (document and document.url):
+ continue
+ attachments.documents.append(
+ Document(
+ url=document.url,
+ extension=document.ext,
+ )
+ )
+ elif attachment_type == WallWallpostAttachmentType.MARKET:
+ market = attachment.market
+ if not market:
+ continue
+ attachments.market = VttMarket(
+ id=market.id,
+ owner_id=market.owner_id,
+ title=market.title,
+ )
+ elif attachment_type == WallWallpostAttachmentType.POLL:
+ poll = attachment.poll
+ if not poll:
+ continue
+ answers = [PollAnswer(answer.text, str(index).encode()) for index, answer in enumerate(poll.answers)]
+ attachments.poll = InputMediaPoll(
+ poll=Poll(
+ id=1,
+ question=poll.question,
+ answers=answers,
+ multiple_choice=poll.multiple,
+ )
+ )
+ elif attachment_type == WallWallpostAttachmentType.LINK:
+ link = attachment.link
+ if not link:
+ continue
+ parsed_link = urlparse(link.url)
+
+ # Not a VK link
+ if parsed_link.netloc not in {"vk.com", "m.vk.com"}:
+ attachments.link = VttLink(
+ caption=link.caption or parsed_link.netloc,
+ url=link.url,
+ )
+ continue
+
+ if parsed_link.netloc == "m.vk.com":
+ parsed_link = parsed_link._replace(netloc="vk.com")
+
+ # Playlist
+ query = parse_qs(parsed_link.query)
+ if settings.TGM_PL_CHANNEL_ID and "act" in query and query["act"][0].startswith("audio_playlist"):
+ pattern = re.compile(r"(?P-?\d+)_(?P\d+)")
+ match = pattern.search(query["act"][0])
+ if not match:
+ continue
+ owner_id = match.group("owner_id")
+ if not owner_id:
+ continue
+ playlist_id = match.group("playlist_id")
+ if not playlist_id:
+ continue
+
+ access_key = None
+ if "access_hash" in query:
+ access_key = query["access_hash"][0]
+
+ playlist = await get_playlist(
+ self.kate_user,
+ owner_id,
+ playlist_id,
+ access_key,
+ with_audios=False,
+ )
+ if playlist:
+ attachments.audio_playlist = playlist
+ continue
+
+ # Everything else
+ attachments.link = VttLink(
+ caption=parsed_link.netloc,
+ url=parsed_link.geturl(),
+ )
+
+ if audio_ids:
+ audios: List[dict] = (
+ await self.kate_user.request(
+ "audio.getById",
+ {
+ "audios": ",".join(audio_ids),
+ },
+ )
+ )["response"]
+ attachments.audios = [AudioAudio(**audio) for audio in audios if audio.get("url")]
+
+ if video_ids:
+ videos = (await self.kate_user.video.get(videos=video_ids)).items or []
+
+ for video in videos:
+ url = ""
+ is_live = video.live is BasePropertyExists.property_exists
+ if is_live:
+ logger.warning("Found live stream.")
+ url = f"https://vk.com/video{video.owner_id}_{video.id}"
+ elif video.platform:
+ url = video.files and video.files.external
+ if not url:
+ logger.warning("External video url not found.")
+ continue
+ else:
+ url = get_video_url(video.files)
+ if not url:
+ logger.warning("VK video url not found, trying with another token...")
+ video_full_id = "{}_{}_{}".format(video.owner_id, video.id, video.access_key)
+ video = next(iter((await self.vk_user.video.get(videos=[video_full_id])).items or []), None)
+ if not video:
+ logger.warning("VK video url not found.")
+ continue
+ url = get_video_url(video.files)
+ if not url:
+ logger.warning("VK video url not found.")
+ continue
+ attachments.videos.append(
+ VttVideo(
+ title=video.title or "",
+ url=url,
+ platform=video.platform,
+ is_live=is_live,
+ ),
+ )
+ return attachments
+
+ async def get_text(
+ self,
+ wall: WallWallpostFull,
+ attachments: Attachments,
+ is_repost: bool = False,
+ ):
+ text = WallTextHandler(self.kate_user, wall, attachments, is_repost, self.groups)
+ await text.process_text()
+ return text
+
+ async def get_pl_text(
+ self,
+ playlist: AudioPlaylist,
+ ):
+ text = PlaylistTextHandler(self.kate_user, playlist)
+ await text.process_text()
+ return text
+
+ async def send_main_message(
+ self,
+ wall_text: WallTextHandler,
+ attachments: Attachments,
+ reply_to_message_id: Optional[int] = None,
+ ) -> Message:
+ logger.info("Handling main message...")
+ caption = wall_text.caption
+ caption_first = caption[0] if caption else None
+ caption_first_text = caption_first[0] if caption_first else None
+ caption_first_entities = caption_first[1] if caption_first else None
+ caption_first_html = html.unparse(*caption_first) if caption_first else ""
+
+ message = wall_text.message
+ message_first = message[0] if message else None
+ message_first_text = message_first[0] if message_first else ""
+ message_first_entities = message_first[1] if message_first else None
+
+ vk_videos = [v for v in attachments.videos if (v.platform is None and not v.is_live)]
+
+ has_link_preview = attachments.link or any((v.platform or v.is_live) for v in attachments.videos)
+
+ is_caption = False
+ if attachments.photos:
+ is_caption = True
+ async with Downloader() as downloader:
+ files = await downloader.download_medias(attachments.photos)
+ if vk_videos:
+ files += await downloader.download_videos(vk_videos)
+ main_msg: Message = (
+ await self.tgm_bot.send_file(
+ self.channel_id,
+ file=files,
+ caption=caption_first_html,
+ video_note=True,
+ link_preview=has_link_preview,
+ reply_to=reply_to_message_id,
+ )
+ )[0]
+ elif vk_videos:
+ is_caption = True
+ async with Downloader() as downloader:
+ current_videos = await downloader.download_videos(vk_videos)
+ main_msg = (
+ await self.tgm_bot.send_file(
+ self.channel_id,
+ file=current_videos,
+ caption=caption_first_html,
+ video_note=True,
+ link_preview=has_link_preview,
+ reply_to=reply_to_message_id,
+ )
+ )[0]
+ elif has_link_preview:
+ main_msg = await self.tgm_bot.send_message(
+ self.channel_id,
+ message=message_first_text,
+ formatting_entities=message_first_entities,
+ link_preview=True,
+ reply_to=reply_to_message_id,
+ )
+ elif attachments.documents:
+ is_caption = True
+ document = attachments.documents.pop(0)
+ async with Downloader() as downloader:
+ downloaded_documents = await downloader.download_media(document.url)
+ main_msg = await self.tgm_bot.send_file(
+ self.channel_id,
+ file=downloaded_documents,
+ caption=caption_first_text,
+ formatting_entities=caption_first_entities,
+ reply_to=reply_to_message_id,
+ )
+ elif attachments.audios:
+ is_caption = True
+ async with Downloader() as downloader:
+ downloaded_audios = await downloader.download_audios(attachments.audios[:10], self.vk_user)
+ main_msg = (
+ await self.tgm_bot.send_file(
+ self.channel_id,
+ caption=[""] * (len(downloaded_audios) - 1) + [caption_first_html],
+ file=downloaded_audios,
+ voice_note=True,
+ reply_to=reply_to_message_id,
+ )
+ )[0]
+ attachments.audios = attachments.audios[10:]
+ else:
+ main_msg = await self.tgm_bot.send_message(
+ self.channel_id,
+ message=message_first_text,
+ formatting_entities=message_first_entities,
+ link_preview=has_link_preview,
+ reply_to=reply_to_message_id,
+ )
+
+ # Send rest messages
+ rest_messages = caption[1:] if is_caption else message[1:]
+ for text, entities in rest_messages:
+ await self.tgm_bot.send_message(
+ self.channel_id,
+ message=text,
+ formatting_entities=entities,
+ link_preview=False,
+ reply_to=main_msg,
+ )
+ logger.info("Main message sent successfully.")
+ return main_msg
+
+ async def send_replies(
+ self,
+ wall: WallWallpostFull,
+ attachments: Attachments,
+ main_message_id: int,
+ wall_text: WallTextHandler,
+ ) -> None:
+ if wall.geo:
+ logger.info("Sending geo location...")
+ geo = wall.geo
+ latitude, longitude = [float(x) for x in geo.coordinates.split(" ")]
+ await self.tgm_bot.send_file(
+ self.channel_id,
+ file=InputMediaGeoLive(geo_point=InputGeoPoint(lat=latitude, long=longitude)),
+ reply_to=main_message_id,
+ )
+ if attachments.poll:
+ logger.info("Sending poll...")
+ await self.tgm_bot.send_file(
+ self.channel_id,
+ file=attachments.poll,
+ reply_to=main_message_id,
+ )
+ if attachments.audios:
+ logger.info("Sending audios...")
+ async with Downloader() as downloader:
+ current_audios = await downloader.download_audios(attachments.audios, self.vk_user)
+ await self.tgm_bot.send_file(
+ self.channel_id,
+ file=current_audios,
+ voice_note=True,
+ reply_to=main_message_id,
+ )
+ logger.info("Audios sent successfully.")
+ if attachments.documents:
+ logger.info("Sending documents...")
+ document_urls = [doc.url for doc in attachments.documents]
+ async with Downloader() as downloader:
+ document_paths = await downloader.download_medias(document_urls)
+ await self.tgm_bot.send_file(
+ self.channel_id,
+ file=document_paths,
+ force_document=True,
+ reply_to=main_message_id,
+ )
+ logger.info("Documents sent successfully.")
+
+ # Send rest messages
+ rest_messages = wall_text.caption[1:]
+ for text, entities in rest_messages:
+ await self.tgm_bot.send_message(
+ self.channel_id,
+ message=text,
+ formatting_entities=entities,
+ link_preview=False,
+ reply_to=main_message_id,
+ )
+
+ if attachments.audio_playlist:
+ logger.info("Sending playlist...")
+ playlist = attachments.audio_playlist
+
+ # Send playlist link to the main channel
+ playlist_text = await self.get_pl_text(playlist)
+ main_pl_caption = playlist_text.caption
+ main_pl_caption_first = main_pl_caption[0] if main_pl_caption else None
+ main_pl_caption_html = html.unparse(*main_pl_caption_first) if main_pl_caption_first else ""
+ async with Downloader() as downloader:
+ downloaded_photo = None
+ if playlist.photo:
+ downloaded_photo = await downloader.download_media(playlist.photo)
+ main_pl_link_message = await self.tgm_bot.send_message(
+ self.channel_id,
+ message=main_pl_caption_html,
+ file=downloaded_photo,
+ buttons=Button.inline(PL_SOON, b"wait_for_pl_link"),
+ reply_to=main_message_id,
+ )
+
+ from app.celery_worker import forward_playlist
+
+ forward_playlist.delay(
+ owner_id=playlist.owner_id,
+ playlist_id=playlist.id,
+ access_key=playlist.access_key,
+ reply_channel_id=self.channel_id,
+ reply_message_id=main_pl_link_message.id,
+ )
+
+ rest_messages = main_pl_caption[1:]
+ for text, entities in rest_messages:
+ await self.tgm_bot.send_message(
+ self.channel_id,
+ message=text,
+ formatting_entities=entities,
+ link_preview=False,
+ reply_to=main_pl_link_message,
+ )
+ logger.info(f"[{playlist.full_id}] Playlist sent successfully.")
+
+ async def run(self) -> str:
+ extended_wall = await get_extended_wall(self.kate_user, self.owner_id, self.wall_id)
+ if not (extended_wall and extended_wall.items):
+ return "NOT_FOUND"
+
+ wall = extended_wall.items[0]
+ if wall.donut and wall.donut.is_donut:
+ return "IS_DONUT"
+
+ self.groups = extended_wall.groups
+
+ main_attachments = await self.collect_attachments(wall)
+ main_text = await self.get_text(wall, main_attachments)
+
+ if not wall.copy_history:
+ main_message = await self.send_main_message(main_text, main_attachments)
+ reply_id = main_message.id
+ await self.send_replies(wall, main_attachments, reply_id, main_text)
+ else:
+ reversed_posts = wall.copy_history[::-1]
+ reply_id = None
+ for repost in reversed_posts[:-1]:
+ repost_attachments = await self.collect_attachments(repost)
+
+ repost_text = await self.get_text(
+ repost,
+ repost_attachments,
+ is_repost=True,
+ )
+
+ repost_message = await self.send_main_message(
+ repost_text,
+ repost_attachments,
+ reply_to_message_id=reply_id,
+ )
+ reply_id = repost_message.id
+ await self.send_replies(repost, repost_attachments, reply_id, repost_text)
+
+ repost = reversed_posts[-1]
+ repost_attachments = await self.collect_attachments(repost)
+
+ repost_text = await self.get_text(
+ repost,
+ repost_attachments,
+ is_repost=True,
+ )
+ if not main_text.header:
+ repost_text.footer += main_text.footer
+
+ main_message = await self.send_main_message(
+ repost_text,
+ repost_attachments,
+ reply_to_message_id=reply_id,
+ )
+ reply_id = main_message.id
+ await self.send_replies(repost, repost_attachments, reply_id, repost_text)
+
+ if main_text.header:
+ await self.send_main_message(
+ main_text,
+ main_attachments,
+ reply_to_message_id=reply_id,
+ )
+ return get_message_link(await self.tgm_bot.get_entity(self.channel_id), main_message.id)
diff --git a/app/logging_config.yaml b/app/logging_config.yaml
new file mode 100644
index 0000000..20d5026
--- /dev/null
+++ b/app/logging_config.yaml
@@ -0,0 +1,42 @@
+version: 1
+formatters:
+ default:
+ (): uvicorn.logging.DefaultFormatter
+ fmt: '%(levelprefix)s %(asctime)-8s %(name)-15s %(message)s'
+ use_colors: None
+ file:
+ format: '%(levelname)s %(asctime)-8s %(name)-15s %(message)s'
+ access:
+ (): uvicorn.logging.AccessFormatter
+ fmt: '%(levelprefix)s %(client_addr)s - "%(request_line)s" %(status_code)s'
+handlers:
+ default:
+ formatter: default
+ class: logging.StreamHandler
+ stream: ext://sys.stderr
+ access:
+ formatter: access
+ class: logging.StreamHandler
+ stream: ext://sys.stdout
+ app_default:
+ formatter: default
+ class: logging.StreamHandler
+ rotating_file:
+ formatter: file
+ filename: logs/vtt-cb-receiver.log
+ maxBytes: 1000000
+ backupCount: 5
+ class: logging.handlers.RotatingFileHandler
+loggers:
+ uvicorn:
+ handlers: [default, rotating_file]
+ level: INFO
+ uvicorn.error:
+ level: INFO
+ uvicorn.access:
+ handlers": [access, rotating_file]
+ level: INFO
+ propagate: False
+ app:
+ handlers: [app_default, rotating_file]
+ level: INFO
\ No newline at end of file
diff --git a/app/main.py b/app/main.py
new file mode 100644
index 0000000..5a5633d
--- /dev/null
+++ b/app/main.py
@@ -0,0 +1,69 @@
+import logging
+import os
+
+from fastapi import BackgroundTasks, FastAPI, Response
+from vkbottle_types.objects import CallbackType, WallPostType, WallWallpostFull
+
+from app.celery_worker import forward_wall
+from app.config import settings
+from app.schemas.vk import VkCallback
+from app.utils.database import VttTaskType, get_queued_task
+from app.utils.vk import setup_vk_server
+
+logger = logging.getLogger(__name__)
+
+app = FastAPI()
+
+
+@app.on_event("startup")
+async def on_startup():
+ await setup_vk_server()
+
+
+@app.post("/")
+def read_vk(req: VkCallback, bg: BackgroundTasks):
+ if req.secret != settings.VK_SERVER_SECRET:
+ logger.warning(f"Unauthorized request: {req}")
+ return Response(status_code=401)
+
+ req_type = req.type
+ logger.info(f"[VK] New event: {req_type}")
+ if req_type == CallbackType.CONFIRMATION:
+ confirmation_token = os.getenv("VK_CONFIRM_CODE")
+ logger.info(f'[VK] Response with confirmation code "{confirmation_token}" has been sent.')
+ return Response(confirmation_token)
+ if req_type == CallbackType.WALL_POST_NEW:
+ post = WallWallpostFull(**req.object)
+ if post.post_type in [
+ WallPostType.POST,
+ WallPostType.REPLY,
+ WallPostType.PHOTO,
+ WallPostType.VIDEO,
+ ] and not (post.donut and post.donut.is_donut):
+ owner_id = post.owner_id
+ id = post.id
+ if owner_id and id:
+ logger.info(f"[VK] New post ({owner_id}_{id}).")
+ if get_queued_task(owner_id, id, VttTaskType.wall):
+ logger.warning(f"[VK] Post {owner_id}_{id} already exists.")
+ else:
+ forward_wall.delay(
+ owner_id=owner_id,
+ wall_id=id,
+ )
+ logger.info('[VK] Response with "ok" string has been sent.')
+ return Response("ok")
+
+
+if __name__ == "__main__":
+ import uvicorn
+
+ uvicorn.run(
+ "app.main:app",
+ host="127.0.0.1",
+ port=8000,
+ reload=True,
+ log_config="logging_config.yaml",
+ use_colors=True,
+ log_level="debug",
+ )
diff --git a/app/schemas/__init__.py b/app/schemas/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/app/schemas/vk.py b/app/schemas/vk.py
new file mode 100644
index 0000000..2af5766
--- /dev/null
+++ b/app/schemas/vk.py
@@ -0,0 +1,133 @@
+import typing
+from typing import Any, List, Optional
+
+from pydantic.main import BaseModel
+from telethon.tl.types import InputMediaPoll
+from vkbottle_types.objects import AudioAudio, CallbackBase
+
+
+class VkCallback(CallbackBase):
+ object: Optional[Any] = None
+
+
+class VkApiAudio(BaseModel):
+ id: int
+ owner_id: int
+ track_covers: List[str]
+ url: str
+ artist: str
+ title: str
+ duration: int
+
+
+class AudioPlaylistGenres(BaseModel):
+ id: int
+ name: str
+
+
+class AudioPlaylistFollowed(BaseModel):
+ playlist_id: int
+ owner_id: int
+
+
+class AudioPlaylistPhoto(BaseModel):
+ width: int
+ height: int
+ photo_34: str
+ photo_68: str
+ photo_135: str
+ photo_270: str
+ photo_300: str
+ photo_600: str
+ photo_1200: str
+
+
+class AudioPlaylistPermissions(BaseModel):
+ play: bool
+ share: bool
+ edit: bool
+ follow: bool
+ delete: bool
+ boom_download: bool
+
+
+class AudioPlaylistMainArtist(BaseModel):
+ name: str
+ domain: str
+ id: str
+
+
+class VkApiAudioPlaylist(BaseModel):
+ id: int
+ owner_id: int
+ type: int
+ title: str
+ description: str
+ count: int
+ followers: int
+ plays: int
+ create_time: int
+ update_time: int
+ genres: List[AudioPlaylistGenres]
+ is_following: bool
+ year: Optional[int] = None
+ followed: Optional[AudioPlaylistFollowed] = None
+ photo: Optional[AudioPlaylistPhoto] = None
+ thumbs: Optional[List[AudioPlaylistPhoto]] = None
+ permissions: AudioPlaylistPermissions
+ subtitle_badge: bool
+ play_button: bool
+ access_key: str
+ is_explicit: Optional[bool] = None
+ main_artists: Optional[List[AudioPlaylistMainArtist]] = None
+ album_type: str
+
+
+class Document(BaseModel):
+ url: str
+ extension: str
+
+
+class VttVideo(BaseModel):
+ title: str
+ url: str
+ platform: Optional[str] = None
+ is_live: bool = False
+
+
+class AudioPlaylist(BaseModel):
+ id: int
+ owner_id: int
+ access_key: Optional[str] = None
+ full_id: str
+ title: str
+ description: str
+ photo: Optional[str] = None
+ audios: List[AudioAudio] = []
+
+
+class VttMarket(BaseModel):
+ id: int
+ owner_id: int
+ title: str
+
+
+class VttLink(BaseModel):
+ caption: str
+ url: str
+
+
+class Attachments:
+ def __init__(self) -> None:
+ self.audios: List[AudioAudio] = []
+ self.audio_playlist: typing.Optional[AudioPlaylist] = None
+ self.photos: List[str] = []
+ self.documents: List[Document] = []
+ self.videos: List[VttVideo] = []
+ self.poll: typing.Optional[InputMediaPoll] = None
+ self.market: typing.Optional[VttMarket] = None
+ self.link: typing.Optional[VttLink] = None
+
+ @property
+ def length(self):
+ return len(self.audios) + len(self.photos) + len(self.documents) + len(self.videos)
diff --git a/app/sign_in.py b/app/sign_in.py
new file mode 100644
index 0000000..10648d5
--- /dev/null
+++ b/app/sign_in.py
@@ -0,0 +1,60 @@
+import asyncio
+import logging
+import sys
+
+from telethon.client.telegramclient import TelegramClient
+
+from app.config import settings
+from app.utils.telegram import get_entity_by_id
+
+logger = logging.getLogger("app.sign_in")
+
+
+async def get_channel_entities(client: TelegramClient):
+ logger.info("Getting main channel entity...")
+ entity = await get_entity_by_id(
+ client,
+ settings.TGM_CHANNEL_ID,
+ )
+ if not entity:
+ sys.exit(1)
+
+ if settings.TGM_PL_CHANNEL_ID:
+ logger.info("Getting playlist channel entity...")
+ entity = await get_entity_by_id(
+ client,
+ settings.TGM_PL_CHANNEL_ID,
+ )
+ if not entity:
+ sys.exit(1)
+
+
+async def main():
+ logger.info("Signing into Telegram...")
+ tgm_search_client = TelegramClient("tgm_search_client", settings.TGM_API_ID, settings.TGM_API_HASH)
+ await tgm_search_client.start(phone=lambda: settings.TGM_CLIENT_PHONE)
+ await get_channel_entities(tgm_search_client)
+ await tgm_search_client.disconnect()
+
+ tgm_bot = TelegramClient("tgm_bot", settings.TGM_API_ID, settings.TGM_API_HASH)
+ await tgm_bot.start(bot_token=settings.TGM_BOT_TOKEN)
+ await get_channel_entities(tgm_bot)
+ await tgm_bot.disconnect()
+
+ worker_bot = TelegramClient("worker_bot", settings.TGM_API_ID, settings.TGM_API_HASH)
+ await worker_bot.start(bot_token=settings.TGM_BOT_TOKEN)
+ await get_channel_entities(worker_bot)
+ await worker_bot.disconnect()
+
+ if settings.TGM_PL_CHANNEL_ID:
+ worker_pl_bot = TelegramClient("worker_pl_bot", settings.TGM_API_ID, settings.TGM_API_HASH)
+ await worker_pl_bot.start(bot_token=settings.TGM_BOT_TOKEN)
+ await get_channel_entities(worker_pl_bot)
+ await worker_pl_bot.disconnect()
+
+ logger.info("Done.")
+
+
+if __name__ == "__main__":
+ logging.basicConfig(format="%(levelname)s: %(asctime)s [%(name)s] %(message)s", level=logging.INFO, force=True)
+ asyncio.run(main())
diff --git a/app/utils/__init__.py b/app/utils/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/app/utils/database.py b/app/utils/database.py
new file mode 100644
index 0000000..098170e
--- /dev/null
+++ b/app/utils/database.py
@@ -0,0 +1,93 @@
+import enum
+from typing import Optional, Union
+
+from celery import states
+from celery.app.task import Context
+from celery.backends.database import DatabaseBackend, retry, session_cleanup
+from celery.backends.database.models import ResultModelBase, Task
+from sqlalchemy import Column, Enum, ForeignKey, Integer, event
+from sqlalchemy.engine import Engine
+from sqlalchemy.sql.expression import desc
+
+
+@event.listens_for(Engine, "connect")
+def set_sqlite_pragma(dbapi_connection, connection_record):
+ cursor = dbapi_connection.cursor()
+ cursor.execute("PRAGMA foreign_keys=ON")
+ cursor.close()
+
+
+class VttTaskType(enum.Enum):
+ wall = 0
+ playlist = 1
+ unknown = 2
+
+
+class VttTask(ResultModelBase):
+ __tablename__ = "vtt_task"
+
+ id = Column(Integer, primary_key=True)
+ vk_type = Column(Enum(VttTaskType))
+ vk_owner_id = Column(Integer)
+ vk_id = Column(Integer)
+ task_id = Column(Integer, ForeignKey(Task.id, ondelete="CASCADE"))
+
+ def __repr__(self):
+ return f""
+
+
+@retry
+def vtt_store_result(
+ vk_type: VttTaskType,
+ vk_owner_id: int,
+ vk_id: int,
+ task_uuid: str,
+ result,
+ state: str,
+ traceback: Optional[str] = None,
+ request: Optional[Context] = None,
+ **kwargs,
+) -> None:
+ """Store return value and state of an executed task."""
+ from app.celery_worker import worker
+
+ backend: DatabaseBackend = worker.backend
+ celery_task = backend.task_cls
+ session = backend.ResultSession()
+ with session_cleanup(session):
+ task = list(session.query(celery_task).filter(celery_task.task_id == task_uuid))
+ task = task and task[0]
+ if not task:
+ task = celery_task(task_uuid)
+ task.task_id = task_uuid
+ session.add(task)
+ session.flush()
+
+ # Add entry to vtt_task table
+ session.add(VttTask(vk_type=vk_type.name, vk_owner_id=vk_owner_id, vk_id=vk_id, task_id=task.id))
+ session.flush()
+
+ backend._update_result(task, result, state, traceback=traceback, request=request)
+ session.commit()
+
+
+def get_queued_task(vk_owner_id: int, vk_id: int, vk_type: VttTaskType):
+ from app.celery_worker import worker
+
+ backend: DatabaseBackend = worker.backend
+ celery_task = backend.task_cls
+ session = backend.ResultSession()
+ with session_cleanup(session):
+ queued_task: Union[celery_task, None] = (
+ session.query(celery_task)
+ .join(VttTask)
+ .filter(
+ (VttTask.vk_owner_id == vk_owner_id)
+ & (VttTask.vk_id == vk_id)
+ & (VttTask.vk_type == vk_type.name)
+ & ((celery_task.status == "SENT") | (celery_task.status == states.STARTED))
+ )
+ .order_by(desc(celery_task.date_done))
+ .first()
+ )
+ return queued_task
diff --git a/app/utils/downloader.py b/app/utils/downloader.py
new file mode 100644
index 0000000..608ab4a
--- /dev/null
+++ b/app/utils/downloader.py
@@ -0,0 +1,137 @@
+import asyncio
+import cgi
+import logging
+import os
+import re
+import tempfile
+from mimetypes import guess_extension
+from secrets import randbelow
+from typing import List, Optional
+from urllib.parse import urlparse
+
+import aiofiles
+import eyed3
+import ffmpeg
+from aiofiles.tempfile import NamedTemporaryFile
+from aiohttp import ClientSession
+from vkbottle.api.api import API
+from vkbottle_types.objects import AudioAudio
+
+from app.schemas.vk import VttVideo
+
+logger = logging.getLogger(__name__)
+
+
+class Downloader:
+ def __init__(self) -> None:
+ self.session = ClientSession()
+ self.file_paths: List[str] = []
+
+ async def __aenter__(self):
+ return self
+
+ async def __aexit__(self, exc_type, exc_value, traceback):
+ await self.close()
+
+ async def close(self):
+ await self.session.close()
+ for path in self.file_paths:
+ os.remove(path)
+
+ async def download_media(self, url: str) -> str:
+ logger.info(f"Downloading document from URL: {url}")
+ filepath = ""
+ await asyncio.sleep(randbelow(3))
+ async with self.session.get(url, timeout=3600) as response:
+ temp_path = os.path.join(tempfile.gettempdir(), os.path.basename(response.url.path))
+ async with aiofiles.open(temp_path, "w+b") as file:
+ async for chunk, _ in response.content.iter_chunks():
+ await file.write(chunk)
+ filepath = temp_path
+ return filepath
+
+ async def download_video(self, url: str, title: str) -> str:
+ logger.info(f'Downloading video "{title}" from URL: {url}')
+ filepath = ""
+ await asyncio.sleep(randbelow(3))
+ async with self.session.get(url, timeout=3600) as response:
+ if not title:
+ header = response.headers.get("Content-Disposition")
+ _, opts = cgi.parse_header(header)
+ filename = opts["filename"]
+ else:
+ name = title.strip().replace(" ", "_")
+ name = re.sub(r"(?u)[^-\w.]", "", name)
+ extension = guess_extension(response.headers.get("content-type"))
+ filename = name + extension
+ temp_path = os.path.join(tempfile.gettempdir(), filename)
+ async with aiofiles.open(temp_path, "w+b") as file:
+ async for chunk, _ in response.content.iter_chunks():
+ await file.write(chunk)
+ filepath = temp_path
+ return filepath
+
+ async def download_audio(
+ self,
+ audio: AudioAudio,
+ fallback_vk_api: Optional[API] = None,
+ try_fallback: bool = True,
+ ) -> str:
+ url = audio.url
+ audio_full_id = f"{audio.owner_id}_{audio.id}_{audio.access_key}"
+ audio_full_title = f"{audio.artist} - {audio.title}"
+ logger.info(f"Downloading audio [{audio_full_id}] from URL: {url}")
+ filepath = ""
+ await asyncio.sleep(randbelow(3))
+ async with NamedTemporaryFile(suffix=".mp3", delete=False) as temp:
+ if not urlparse(url).path.endswith("m3u8"):
+ logger.info("Downloading audio by http...")
+ async with self.session.get(url, timeout=3600) as response:
+ async for chunk, _ in response.content.iter_chunks():
+ await temp.write(chunk)
+ else:
+ logger.info("Downloading audio by ffmpeg...")
+ stream = ffmpeg.input(url, http_persistent=False)
+ stream = ffmpeg.output(stream, "-", c="copy", f="mp3")
+ out, _ = ffmpeg.run(stream, capture_stdout=True, quiet=True)
+ await temp.write(out)
+ filepath = temp.name
+
+ # Setting audio metadata
+ audiofile = eyed3.load(filepath)
+ if audiofile:
+ audiofile.tag.artist = audio.artist
+ audiofile.tag.title = audio.title
+ audiofile.tag.save()
+ elif fallback_vk_api and try_fallback:
+ logger.warning(f"Broken audio [{audio_full_id}] [{audio_full_title}], trying with another token...")
+ audios: List[dict] = (
+ await fallback_vk_api.request(
+ "audio.getById",
+ {
+ "audios": audio_full_id,
+ },
+ )
+ )["response"]
+ fb_audio = next(iter(audios), None)
+ if fb_audio and fb_audio.get("url"):
+ audio = AudioAudio(**fb_audio)
+ filepath = await self.download_audio(audio, fallback_vk_api, try_fallback=False)
+
+ logger.info(f"Audio succesfully downloaded: [{audio_full_id}] [{audio_full_title}]")
+ return filepath
+
+ async def download_medias(self, media_urls: List[str]):
+ media_paths = await asyncio.gather(*[self.download_media(url) for url in media_urls])
+ self.file_paths += media_paths
+ return media_paths
+
+ async def download_videos(self, videos: List[VttVideo]):
+ video_paths = await asyncio.gather(*[self.download_video(video.url, video.title) for video in videos])
+ self.file_paths += video_paths
+ return video_paths
+
+ async def download_audios(self, audios: List[AudioAudio], fallback_vk_api: Optional[API] = None):
+ audio_paths = await asyncio.gather(*[self.download_audio(audio, fallback_vk_api) for audio in audios])
+ self.file_paths += audio_paths
+ return audio_paths
diff --git a/app/utils/telegram.py b/app/utils/telegram.py
new file mode 100644
index 0000000..c508c43
--- /dev/null
+++ b/app/utils/telegram.py
@@ -0,0 +1,80 @@
+import logging
+from typing import List, Tuple, Union
+
+from telethon.client.telegramclient import TelegramClient
+from telethon.extensions import html
+from telethon.hints import Entity
+from telethon.tl.types import Chat, TypeInputPeer, TypeMessageEntity
+from telethon.utils import split_text as telethon_split_text
+
+logger = logging.getLogger(__name__)
+
+MAX_MESSAGE_LENGTH = 4096
+MAX_CAPTION_LENGTH = 1024
+
+
+def split_text(header_text: str, footer_text: str = "", is_caption=False) -> List[Tuple[str, List[TypeMessageEntity]]]:
+ tgm_limit = MAX_CAPTION_LENGTH if is_caption else MAX_MESSAGE_LENGTH
+
+ p_header_text, p_header_entities = html.parse(header_text)
+ p_footer_text, _ = html.parse(footer_text)
+ main_text = header_text
+ rest_texts = []
+
+ newline_offset = 0
+ if footer_text.startswith("\n\n"):
+ newline_offset = 2
+
+ strip_len = tgm_limit - newline_offset - len(p_footer_text)
+ if len(p_header_text) > strip_len:
+ s_header_text, s_header_entities = next(
+ telethon_split_text(p_header_text, p_header_entities, limit=strip_len),
+ ("", None),
+ )
+ if s_header_text and s_header_entities:
+ main_text = html.unparse(s_header_text, s_header_entities)
+ main_text_offset = len(main_text)
+ p_rest_text, p_rest_entities = html.parse(header_text[main_text_offset:])
+ rest_texts = list(telethon_split_text(p_rest_text, p_rest_entities))
+
+ main_text += footer_text
+ all_text = [html.parse(main_text)] + rest_texts
+ return all_text
+
+
+def get_html_link(href: str, title: str):
+ return f'{html.escape(title)}'
+
+
+def get_message_link(entity: Entity, message_id) -> str:
+ if isinstance(entity, Chat):
+ return ""
+ channel = entity.username
+ if channel is None:
+ channel = f"c/{entity.id}"
+ message_link = f"https://t.me/{channel}/{message_id}"
+ return message_link
+
+
+async def get_entity_by_username(
+ client: TelegramClient,
+ channel_username: str,
+) -> Union[TypeInputPeer, None]:
+ entity = None
+ try:
+ entity = await client.get_input_entity(channel_username)
+ except ValueError:
+ logger.critical("Failed to get entity! If your channel is private, you can only use the id.")
+ return entity
+
+
+async def get_entity_by_id(
+ client: TelegramClient,
+ channel_id: int,
+) -> Union[TypeInputPeer, None]:
+ entity = None
+ try:
+ entity = await client.get_input_entity(channel_id)
+ except ValueError:
+ logger.critical("Failed to get entity! Add bot to your channel as an admin and try again.")
+ return entity
diff --git a/app/utils/vk.py b/app/utils/vk.py
new file mode 100644
index 0000000..263d0a6
--- /dev/null
+++ b/app/utils/vk.py
@@ -0,0 +1,214 @@
+import logging
+import os
+from typing import Callable, List, Optional, Union
+
+from vkbottle import AiohttpClient, VKAPIError
+from vkbottle.api.api import API
+from vkbottle.api.request_validator import ABCRequestValidator
+from vkbottle_types import API_VERSION
+from vkbottle_types.methods.groups import GroupsCategory
+from vkbottle_types.objects import (
+ AudioAudio,
+ GroupsCallbackServer,
+ PhotosPhotoSizes,
+ PhotosPhotoSizesType,
+ VideoVideoFiles,
+)
+from vkbottle_types.responses.wall import GetByIdExtendedResponseModel
+
+from app.config import settings
+from app.schemas.vk import AudioPlaylist, VkApiAudioPlaylist
+
+logger = logging.getLogger(__name__)
+
+
+async def setup_vk_server():
+ logger.info("[VK] Setting up callback server...")
+ vk_group = GroupsCategory(
+ API(
+ token=settings.VK_COMMUNITY_TOKEN,
+ http_client=AiohttpClient(),
+ ),
+ )
+ group_id = settings.VK_COMMUNITY_ID
+ server_url = settings.SERVER_URL
+ server_title = settings.VK_SERVER_TITLE
+ try:
+ confirm = await vk_group.get_callback_confirmation_code(group_id=group_id)
+ os.environ.setdefault("VK_CONFIRM_CODE", confirm.code)
+ logger.info(f"[VK] Callback code to confirm: {confirm.code}")
+
+ server_id: Optional[int] = None
+ secret_key = settings.VK_SERVER_SECRET
+
+ servs = await vk_group.get_callback_servers(group_id=group_id)
+ if not servs.items:
+ new_serv = await vk_group.add_callback_server(
+ group_id=group_id,
+ url=server_url,
+ title=server_title,
+ secret_key=secret_key,
+ )
+ server_id = new_serv.server_id
+ logger.info("[VK] No callback servers found, added new.")
+ else:
+ find_by_title: Callable[[GroupsCallbackServer], GroupsCallbackServer] = lambda x: x.title == server_title
+ main_serv: Optional[GroupsCallbackServer] = next(filter(find_by_title, servs.items), None)
+ if main_serv:
+ await vk_group.edit_callback_server(
+ group_id=group_id,
+ server_id=main_serv.id,
+ url=server_url,
+ title=main_serv.title,
+ secret_key=secret_key,
+ )
+ server_id = main_serv.id
+ logger.info(f"[VK] Using the existing callback server: {main_serv.title}")
+ else:
+ new_serv = await vk_group.add_callback_server(
+ group_id=group_id,
+ url=server_url,
+ title=server_title,
+ secret_key=secret_key,
+ )
+ server_id = new_serv.server_id
+ logger.info(f'[VK] No callback server found by title "{server_title}", added new.')
+
+ await vk_group.set_callback_settings(
+ group_id=group_id,
+ server_id=server_id,
+ api_version=API_VERSION,
+ wall_post_new=True,
+ )
+ logger.info("[VK] The callback server settings has been set.")
+ finally:
+ await vk_group.api.http_client.close()
+
+
+async def get_playlist(
+ vk_api: API,
+ owner_id: int,
+ playlist_id: int,
+ access_key: Optional[str] = None,
+ with_audios: bool = True,
+) -> Union[AudioPlaylist, None]:
+ playlist_info = None
+ try:
+ playlist_info = (
+ await vk_api.request(
+ "audio.getPlaylistById",
+ {
+ "owner_id": owner_id,
+ "playlist_id": playlist_id,
+ "access_key": access_key,
+ },
+ )
+ )["response"]
+ except VKAPIError as error:
+ pl_full_id = f"{owner_id}_{playlist_id}"
+ if access_key:
+ pl_full_id += f"_{access_key}"
+ logger.warning(f"Failed to get playlist (https://vk.com/music/album/{pl_full_id}): {error.description}")
+
+ if not playlist_info:
+ return None
+
+ playlist_info = VkApiAudioPlaylist(**playlist_info)
+
+ full_title = playlist_info.title
+ if playlist_info.main_artists:
+ artists = ", ".join([artist.name for artist in playlist_info.main_artists])
+ full_title = f"{artists} - {playlist_info.title}"
+
+ playlist_photo = None
+ if playlist_info.photo:
+ playlist_photo = playlist_info.photo.photo_1200
+ elif playlist_info.thumbs:
+ playlist_photo = playlist_info.thumbs[0].photo_1200
+
+ playlist_audios = []
+ if with_audios:
+ playlist_audios = (
+ await vk_api.request(
+ "audio.get",
+ {
+ "owner_id": owner_id,
+ "playlist_id": playlist_id,
+ "count": playlist_info.count,
+ "access_key": access_key,
+ },
+ )
+ )["response"]["items"]
+ playlist_audios = [AudioAudio(**audio) for audio in playlist_audios if audio.get("url")]
+ playlist = AudioPlaylist(
+ id=playlist_id,
+ owner_id=owner_id,
+ access_key=access_key,
+ full_id=f"{owner_id}_{playlist_id}_{access_key}",
+ title=full_title,
+ description=playlist_info.description,
+ photo=playlist_photo,
+ audios=playlist_audios,
+ )
+ return playlist
+
+
+async def get_extended_wall(
+ vk_api: API,
+ owner_id: int,
+ wall_id: int,
+) -> Union[GetByIdExtendedResponseModel, None]:
+ try:
+ wall_info: GetByIdExtendedResponseModel = await vk_api.wall.get_by_id(
+ posts=[f"{owner_id}_{wall_id}"],
+ copy_history_depth=100,
+ extended=True,
+ )
+ if not wall_info.items:
+ return None
+ return wall_info
+ except VKAPIError as error:
+ logger.warning(f"Failed to get wall post (https://vk.com/wall/{owner_id}_{wall_id}): {error.description}")
+ return None
+
+
+def get_video_url(formats: Optional[VideoVideoFiles]) -> Union[str, None]:
+ if not formats:
+ return None
+ url = formats.mp4_720 or formats.mp4_480 or formats.mp4_360 or formats.mp4_240 or formats.flv_320
+ return url
+
+
+# Filter cropped photo sizes
+photo_sizes = [
+ size
+ for size in PhotosPhotoSizesType
+ if size
+ not in (
+ PhotosPhotoSizesType.O,
+ PhotosPhotoSizesType.P,
+ PhotosPhotoSizesType.Q,
+ PhotosPhotoSizesType.R,
+ )
+]
+
+
+def get_photo_url(sizes: Optional[List[PhotosPhotoSizes]]) -> Union[str, None]:
+ if not sizes:
+ return None
+
+ max_photo = (None, None)
+ for size in sizes:
+ try:
+ current_index = photo_sizes.index(size.type)
+ except ValueError:
+ continue
+ if not max_photo[0] or (current_index > photo_sizes.index(max_photo[0])):
+ max_photo = (size.type, size.url)
+ return max_photo[1]
+
+
+class VkLangRequestValidator(ABCRequestValidator):
+ async def validate(self, request: dict) -> dict:
+ request["lang"] = settings.VK_API_LANGUAGE
+ return request
diff --git a/assets/vtt_example.gif b/assets/vtt_example.gif
new file mode 100644
index 0000000..f09b593
Binary files /dev/null and b/assets/vtt_example.gif differ
diff --git a/assets/vtt_schema.png b/assets/vtt_schema.png
new file mode 100644
index 0000000..20c8a5b
Binary files /dev/null and b/assets/vtt_schema.png differ
diff --git a/babel.cfg b/babel.cfg
new file mode 100644
index 0000000..8cb5efc
--- /dev/null
+++ b/babel.cfg
@@ -0,0 +1,2 @@
+[python: **.py]
+encoding = utf-8
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..283edf9
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,298 @@
+#!/bin/bash
+
+prompt_yn() {
+ local prompt=$1
+
+ while true; do
+ read -rp "-> $prompt [Y/n]: " yn
+ case $yn in
+ [yY][eE][sS]|[yY]|"")
+ ret_val=1
+ break
+ ;;
+ [nN][oO]|[nN])
+ ret_val=0
+ break
+ ;;
+ *)
+ echo Invalid input, try again...
+ esac
+ done
+}
+
+prompt_text() {
+ local prompt=$1
+ local regex=$2
+ local default=$3
+
+ if [ -n "$default" ]; then
+ prompt="$prompt [$default]"
+ fi
+
+ while true; do
+ read -rp "-> $prompt: " ANSWER
+ if echo "$ANSWER" | grep -qP "$regex"; then
+ ret_val=$ANSWER
+ break
+ elif [ "$ANSWER" == "" ] && [ -n "$default" ]; then
+ ret_val=$default
+ break
+ else
+ echo Invalid input, try again...
+ fi
+ done
+}
+
+set_setting() {
+ local file=$1
+ local key=$2
+ local value=$3
+ local add_quotes=$4
+
+ if [ "$add_quotes" == "y" ]; then
+ value="\"$value\""
+ fi
+
+ if grep -q "$key=" "$file"; then
+ # Escape sed characters.
+ value=$(echo "$value" | sed 's/[\/&]/\\&/g')
+ sudo sed -i "s/^\s*$key=.*/$key=$value/" "$file"
+ else
+ echo "$key=$value" | sudo tee -a "$file"
+ fi
+}
+
+main() {
+ echo "Starting vk-to-tgm installation..."
+
+ if ! command -v python3 &> /dev/null; then
+ echo "Python3 not installed! Aborting."
+ exit 1
+ fi
+
+ if ! command -v ffmpeg &> /dev/null; then
+ echo "FFmpeg not installed! Aborting."
+ exit 1
+ fi
+
+ prompt_yn "Do you want to setup Nginx server?"
+ NGINX_ON=$ret_val
+ if [ "$NGINX_ON" -eq 1 ]; then
+ if ! command -v nginx &> /dev/null; then
+ echo "Nginx is not installed! Aborting."
+ exit 1
+ fi
+ fi
+
+ prompt_text "Enter installation path" "^\/.*$" "/srv/vk-to-tgm"
+ INSTALL_PATH=$ret_val
+
+ prompt_text "Enter app's owner" "^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\$)$" "vtt-user"
+ VTT_USER=$ret_val
+
+ if [ -f ".env" ]; then
+ prompt_yn "Found .env file. Load it?"
+ LOAD_ENV=$ret_val
+ if [ "$LOAD_ENV" -eq 1 ]; then
+ # Clean from comments and spaces and make all variables in single quotes.
+ # shellcheck source=/dev/null
+ if ! source <(sed -e '/^#/d;/^\s*$/d' -e "s/='\(.*\)'/=\1/g" -e "s/=\"\(.*\)\"/=\1/g" -e "s/=\(.*\)/='\1'/g" .env); then
+ echo "Failed to load .env file."
+ exit 1
+ fi
+ fi
+ fi
+
+ if [ -z "$VTT_LANGUAGE" ]; then
+ prompt_text "Enter app's language (available: 'en', 'ru')" "^(en|ru)$" "en"
+ VTT_LANGUAGE=$ret_val
+ fi
+
+ if [ -z "$TGM_CHANNEL_USERNAME" ] && [ -z "$TGM_CHANNEL_ID" ]; then
+ prompt_yn "Is your main Telegram channel public?"
+ IS_MAIN_PUBLIC=$ret_val
+ if [[ "$IS_MAIN_PUBLIC" -eq 1 ]]; then
+ prompt_text "Enter your main Telegram channel name" "^\w+$"
+ TGM_CHANNEL_USERNAME=$ret_val
+ else
+ prompt_text "Enter your main Telegram channel id (starts with '-100')" "^-100\d+$"
+ TGM_CHANNEL_ID=$ret_val
+ fi
+ fi
+
+ if [ -z "$TGM_PL_CHANNEL_USERNAME" ] && [ -z "$TGM_PL_CHANNEL_ID" ]; then
+ prompt_yn "Do you want to forward audio playlists (additional Telegram channel required)?"
+ HAS_PL=$ret_val
+ if [[ "$HAS_PL" -eq 1 ]]; then
+ prompt_yn "Is your playlist Telegram channel public?"
+ IS_PL_PUBLIC=$ret_val
+ if [[ "$IS_PL_PUBLIC" -eq 1 ]]; then
+ prompt_text "Enter your playlist Telegram channel name" "^\w+$"
+ TGM_PL_CHANNEL_USERNAME=$ret_val
+ else
+ prompt_text "Enter your playlist Telegram channel id (starts with '-100')" "^-100\d+$"
+ TGM_PL_CHANNEL_ID=$ret_val
+ fi
+ fi
+ fi
+
+ if [ -z "$SERVER_URL" ]; then
+ prompt_text "Enter your server URL" "^https?:\/\/.+$"
+ SERVER_URL=$ret_val
+ fi
+
+ if [ -z "$VK_COMMUNITY_ID" ]; then
+ prompt_text "Enter your VK community id" "^[0-9]+$"
+ VK_COMMUNITY_ID=$ret_val
+ fi
+
+ if [ -z "$VK_COMMUNITY_TOKEN" ]; then
+ prompt_text "Enter your VK community token" "^.+$"
+ VK_COMMUNITY_TOKEN=$ret_val
+ fi
+
+ if [ -z "$VK_SERVER_TITLE" ]; then
+ prompt_text "Enter title for your VK Callback API server (1-14 characters)" "^.{1,14}$"
+ VK_SERVER_TITLE=$ret_val
+ fi
+
+ if [ -z "$TGM_BOT_TOKEN" ]; then
+ prompt_text "Enter your Telegram bot token" "^.+$"
+ TGM_BOT_TOKEN=$ret_val
+ fi
+
+ if [ -z "$TGM_API_ID" ]; then
+ prompt_text "Enter your Telegram app id" "^[0-9]+$"
+ TGM_API_ID=$ret_val
+ fi
+
+ if [ -z "$TGM_API_HASH" ]; then
+ prompt_text "Enter your Telegram app hash" "^.+$"
+ TGM_API_HASH=$ret_val
+ fi
+
+ if [ -z "$TGM_CLIENT_PHONE" ]; then
+ prompt_text "Enter your Telegram phone number" "^\+?[0-9]+$"
+ TGM_CLIENT_PHONE=$ret_val
+ fi
+
+ if [ -z "$VK_LOGIN" ]; then
+ prompt_text "Enter your VK login" "^.+$"
+ VK_LOGIN=$ret_val
+ fi
+
+ if [ -z "$VK_PASSWORD" ]; then
+ prompt_text "Enter your VK password" "^.+$"
+ VK_PASSWORD=$ret_val
+ fi
+
+ echo "Setting up .env variables..."
+ if [ ! -f ".env" ]; then
+ sudo touch .env
+ fi
+ set_setting ".env" "VTT_LANGUAGE" "$VTT_LANGUAGE" "y"
+ set_setting ".env" "TGM_CHANNEL_USERNAME" "$TGM_CHANNEL_USERNAME" "y"
+ set_setting ".env" "TGM_CHANNEL_ID" "$TGM_CHANNEL_ID" "y"
+ set_setting ".env" "TGM_PL_CHANNEL_USERNAME" "$TGM_PL_CHANNEL_USERNAME" "y"
+ set_setting ".env" "TGM_PL_CHANNEL_ID" "$TGM_PL_CHANNEL_ID" "y"
+ set_setting ".env" "SERVER_URL" "$SERVER_URL" "y"
+ set_setting ".env" "VK_COMMUNITY_ID" "$VK_COMMUNITY_ID" "y"
+ set_setting ".env" "VK_COMMUNITY_TOKEN" "$VK_COMMUNITY_TOKEN" "y"
+ set_setting ".env" "VK_SERVER_TITLE" "$VK_SERVER_TITLE" "y"
+ set_setting ".env" "TGM_BOT_TOKEN" "$TGM_BOT_TOKEN" "y"
+ set_setting ".env" "TGM_API_ID" "$TGM_API_ID" "y"
+ set_setting ".env" "TGM_API_HASH" "$TGM_API_HASH" "y"
+ set_setting ".env" "TGM_CLIENT_PHONE" "$TGM_CLIENT_PHONE" "y"
+ set_setting ".env" "VK_LOGIN" "$VK_LOGIN" "y"
+ set_setting ".env" "VK_PASSWORD" "$VK_PASSWORD" "y"
+
+ echo "Setting up services config files..."
+ sudo cp -f "app/celeryconfig.py.example" "app/celeryconfig.py"
+
+ sudo cp -f "setup/systemd/vtt-cb-receiver.service" "/etc/systemd/system/"
+ set_setting "/etc/systemd/system/vtt-cb-receiver.service" "User" "$VTT_USER"
+ set_setting "/etc/systemd/system/vtt-cb-receiver.service" "Group" "$VTT_USER"
+ set_setting "/etc/systemd/system/vtt-cb-receiver.service" "WorkingDirectory" "$INSTALL_PATH"
+ set_setting "/etc/systemd/system/vtt-cb-receiver.service" "Environment" "VTT_VENV=$INSTALL_PATH/.venv" "y"
+
+ sudo cp -f "setup/systemd/vtt-workers.service" "/etc/systemd/system/"
+ set_setting "/etc/systemd/system/vtt-workers.service" "User" "$VTT_USER"
+ set_setting "/etc/systemd/system/vtt-workers.service" "Group" "$VTT_USER"
+ set_setting "/etc/systemd/system/vtt-workers.service" "WorkingDirectory" "$INSTALL_PATH"
+
+ sudo cp -f "setup/systemd/vtt-dbc-scheduler.service" "/etc/systemd/system/"
+ set_setting "/etc/systemd/system/vtt-dbc-scheduler.service" "User" "$VTT_USER"
+ set_setting "/etc/systemd/system/vtt-dbc-scheduler.service" "Group" "$VTT_USER"
+ set_setting "/etc/systemd/system/vtt-dbc-scheduler.service" "WorkingDirectory" "$INSTALL_PATH"
+
+ sudo cp -f "setup/systemd/vtt-tgm-bot.service" "/etc/systemd/system/"
+ set_setting "/etc/systemd/system/vtt-tgm-bot.service" "User" "$VTT_USER"
+ set_setting "/etc/systemd/system/vtt-tgm-bot.service" "Group" "$VTT_USER"
+ set_setting "/etc/systemd/system/vtt-tgm-bot.service" "WorkingDirectory" "$INSTALL_PATH"
+ set_setting "/etc/systemd/system/vtt-tgm-bot.service" "Environment" "VTT_VENV=$INSTALL_PATH/.venv" "y"
+
+ sudo cp -f "setup/configs/vtt-celery.conf" "/etc/default/"
+ set_setting "/etc/default/vtt-celery.conf" "CELERY_BIN" "$INSTALL_PATH/.venv/bin/celery" "y"
+
+ sudo systemctl daemon-reload
+
+ if [ "$NGINX_ON" -eq 1 ]; then
+ echo "Setting up Nginx config..."
+ sudo cp -f "setup/nginx/vtt-cb-receiver.conf" "/etc/nginx/sites-available/"
+
+ SERVER_NAME=$(echo "$SERVER_URL" | grep -Po 'https?://\K[^/]+')
+ if ! grep -qx "\s*server_name\s*$SERVER_NAME;" "/etc/nginx/sites-available/vtt-cb-receiver.conf"; then
+ sudo sed -i "/^\s*server {/a \ \ \ \ server_name $SERVER_NAME;" "/etc/nginx/sites-available/vtt-cb-receiver.conf"
+ fi
+
+ sudo ln -sf "/etc/nginx/sites-available/vtt-cb-receiver.conf" "/etc/nginx/sites-enabled/"
+ fi
+
+ echo "Creating user '$VTT_USER'..."
+ if id -u "$VTT_USER" &> /dev/null; then
+ echo "User '$VTT_USER' already exists."
+ else
+ sudo useradd -r "$VTT_USER"
+ echo "User '$VTT_USER' created."
+ fi
+
+ echo "Installing in '$INSTALL_PATH'..."
+ sudo mkdir -p "$INSTALL_PATH"
+ if [ "$PWD" != "$(realpath -s "$INSTALL_PATH")" ]; then
+ sudo cp -rf app/ locale/ .env requirements.txt uninstall.sh LICENSE README.md "$INSTALL_PATH"
+ sudo mkdir -p "$INSTALL_PATH/logs"
+ fi
+ sudo chown -R "$VTT_USER": "$INSTALL_PATH"
+
+ cd "$INSTALL_PATH" || exit 1
+
+ sudo chmod o+w "$INSTALL_PATH"
+
+ echo "Installing virtual environment..."
+ sudo rm -rf .venv
+ python3 -m venv .venv
+ # shellcheck source=/dev/null
+ source .venv/bin/activate
+ python3 -m pip install wheel
+ python3 -m pip install -r requirements.txt
+
+ echo "Signing in VK and Telegram..."
+ sudo chmod -f o+rw .env ./*.session &> /dev/null
+ python3 -m app.sign_in
+ sudo chmod o-rw .env ./*.session
+
+ sudo chmod o-w "$INSTALL_PATH"
+
+ sudo chown -R "$VTT_USER": "$INSTALL_PATH"
+
+ echo "Starting services..."
+ sudo systemctl restart vtt-cb-receiver vtt-workers vtt-dbc-scheduler vtt-tgm-bot
+ sudo systemctl enable vtt-cb-receiver vtt-workers vtt-dbc-scheduler vtt-tgm-bot
+ if [ "$NGINX_ON" -eq 1 ]; then
+ sudo systemctl reload nginx
+ fi
+
+ echo "Installation completed."
+}
+
+main
diff --git a/locale/base.pot b/locale/base.pot
new file mode 100644
index 0000000..14450dc
--- /dev/null
+++ b/locale/base.pot
@@ -0,0 +1,163 @@
+# Translations template for PROJECT.
+# Copyright (C) 2022 ORGANIZATION
+# This file is distributed under the same license as the PROJECT project.
+# FIRST AUTHOR , 2022.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PROJECT VERSION\n"
+"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
+"POT-Creation-Date: 2022-04-27 02:39+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: Babel 2.10.1\n"
+
+#: app/bot/plugins/__init__.py:15
+msgid "INCORRECT_LINK"
+msgstr ""
+
+#: app/bot/plugins/common.py:16
+msgid "HELLO"
+msgstr ""
+
+#: app/bot/plugins/common.py:17
+msgid "PERMISSION_CHECK_FAILED"
+msgstr ""
+
+#: app/bot/plugins/common.py:18
+msgid "NO_PERMISSION"
+msgstr ""
+
+#: app/bot/plugins/common.py:19
+msgid "WAITING_FOR_LINK"
+msgstr ""
+
+#: app/bot/plugins/common.py:20
+msgid "CANCELLED"
+msgstr ""
+
+#: app/bot/plugins/common.py:21
+msgid "CLICK_BUTTON"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:22
+msgid "PL_NOT_READY"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:23
+msgid "PL_SEARCHING"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:24
+msgid "PL_NOT_FOUND_IN_VK"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:25
+msgid "PL_ALREADY_IN_THE_QUEUE"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:26
+msgid "PL_ALREADY_STARTED"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:27
+msgid "PL_FOUND_IN_TGM"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:28
+msgid "PL_NOT_FOUND_IN_TGM"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:29
+msgid "PL_ADDED_TO_THE_QUEUE"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:30
+msgid "PL_UNKNOWN_CHANNEL"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:31
+msgid "PL_YES"
+msgstr ""
+
+#: app/bot/plugins/playlist.py:32
+msgid "PL_CANCEL"
+msgstr ""
+
+#: app/bot/plugins/wall.py:22
+msgid "WALL_SEARCHING"
+msgstr ""
+
+#: app/bot/plugins/wall.py:23
+msgid "WALL_NOT_FOUND_IN_VK"
+msgstr ""
+
+#: app/bot/plugins/wall.py:24
+msgid "WALL_ALREADY_IN_THE_QUEUE"
+msgstr ""
+
+#: app/bot/plugins/wall.py:25
+msgid "WALL_ALREADY_STARTED"
+msgstr ""
+
+#: app/bot/plugins/wall.py:26
+msgid "WALL_FOUND_IN_TGM"
+msgstr ""
+
+#: app/bot/plugins/wall.py:27
+msgid "WALL_NOT_FOUND_IN_TGM"
+msgstr ""
+
+#: app/bot/plugins/wall.py:28
+msgid "WALL_ADDED_TO_THE_QUEUE"
+msgstr ""
+
+#: app/bot/plugins/wall.py:29
+msgid "WALL_UNKNOWN_CHANNEL"
+msgstr ""
+
+#: app/bot/plugins/wall.py:30
+msgid "WALL_YES"
+msgstr ""
+
+#: app/bot/plugins/wall.py:31
+msgid "WALL_CANCEL"
+msgstr ""
+
+#: app/handlers/playlist.py:21
+msgid "PL_READY"
+msgstr ""
+
+#: app/handlers/playlist.py:22
+msgid "PL_GO_TO_WALL"
+msgstr ""
+
+#: app/handlers/playlist.py:23
+msgid "PL_OF"
+msgstr ""
+
+#: app/handlers/text.py:17
+msgid "SOURCE"
+msgstr ""
+
+#: app/handlers/text.py:18
+msgid "VK_POST"
+msgstr ""
+
+#: app/handlers/text.py:19
+msgid "VK_REPOST"
+msgstr ""
+
+#: app/handlers/text.py:20
+msgid "VK_PLAYLIST"
+msgstr ""
+
+#: app/handlers/wall.py:32
+msgid "PL_SOON"
+msgstr ""
+
diff --git a/locale/en/LC_MESSAGES/vtt.mo b/locale/en/LC_MESSAGES/vtt.mo
new file mode 100644
index 0000000..bab9c35
Binary files /dev/null and b/locale/en/LC_MESSAGES/vtt.mo differ
diff --git a/locale/en/LC_MESSAGES/vtt.po b/locale/en/LC_MESSAGES/vtt.po
new file mode 100644
index 0000000..ebc7d5f
--- /dev/null
+++ b/locale/en/LC_MESSAGES/vtt.po
@@ -0,0 +1,171 @@
+# English translations for PROJECT.
+# Copyright (C) 2022 ORGANIZATION
+# This file is distributed under the same license as the PROJECT project.
+# FIRST AUTHOR , 2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PROJECT VERSION\n"
+"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
+"POT-Creation-Date: 2022-04-27 02:39+0300\n"
+"PO-Revision-Date: 2022-04-22 21:41+0300\n"
+"Last-Translator: FULL NAME \n"
+"Language: en\n"
+"Language-Team: en \n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: Babel 2.10.1\n"
+
+#: app/bot/plugins/__init__.py:15
+msgid "INCORRECT_LINK"
+msgstr "Incorrect link. Please, try again in one of the following formats"
+
+#: app/bot/plugins/common.py:16
+msgid "HELLO"
+msgstr "Hello!"
+
+#: app/bot/plugins/common.py:17
+msgid "PERMISSION_CHECK_FAILED"
+msgstr ""
+"Failed to check permissions. Something wrong on the Telegram side.\n"
+"\n"
+"Try again later."
+
+#: app/bot/plugins/common.py:18
+msgid "NO_PERMISSION"
+msgstr "Sorry, you don't have the required permissions to use this bot :("
+
+#: app/bot/plugins/common.py:19
+msgid "WAITING_FOR_LINK"
+msgstr "Send me a VK link!"
+
+#: app/bot/plugins/common.py:20
+msgid "CANCELLED"
+msgstr "Operation cancelled."
+
+#: app/bot/plugins/common.py:21
+msgid "CLICK_BUTTON"
+msgstr "Please click one of the buttons!"
+
+#: app/bot/plugins/playlist.py:22
+msgid "PL_NOT_READY"
+msgstr "Playlist is not ready yet!"
+
+#: app/bot/plugins/playlist.py:23
+msgid "PL_SEARCHING"
+msgstr "Searching..."
+
+#: app/bot/plugins/playlist.py:24
+msgid "PL_NOT_FOUND_IN_VK"
+msgstr ""
+"Failed to find such playlist in VK! Either incorrect link or private "
+"playlist. Please try another link."
+
+#: app/bot/plugins/playlist.py:25
+msgid "PL_ALREADY_IN_THE_QUEUE"
+msgstr "This playlist is already in the queue! Send it again?"
+
+#: app/bot/plugins/playlist.py:26
+msgid "PL_ALREADY_STARTED"
+msgstr "This playlist is already handling! Send it again?"
+
+#: app/bot/plugins/playlist.py:27
+msgid "PL_FOUND_IN_TGM"
+msgstr "Playlist found! Send it again?"
+
+#: app/bot/plugins/playlist.py:28
+msgid "PL_NOT_FOUND_IN_TGM"
+msgstr "No such playlist found in the Telegram channel! Send it?"
+
+#: app/bot/plugins/playlist.py:29
+msgid "PL_ADDED_TO_THE_QUEUE"
+msgstr "The playlist has been added to the queue!"
+
+#: app/bot/plugins/playlist.py:30
+msgid "PL_UNKNOWN_CHANNEL"
+msgstr "Error. This bot is not an admin in the specified Telegram channel."
+
+#: app/bot/plugins/playlist.py:31
+msgid "PL_YES"
+msgstr "Yes"
+
+#: app/bot/plugins/playlist.py:32
+msgid "PL_CANCEL"
+msgstr "Cancel"
+
+#: app/bot/plugins/wall.py:22
+msgid "WALL_SEARCHING"
+msgstr "Searching..."
+
+#: app/bot/plugins/wall.py:23
+msgid "WALL_NOT_FOUND_IN_VK"
+msgstr ""
+"Failed to find post in VK! Either incorrect link or private post. Please "
+"try another link."
+
+#: app/bot/plugins/wall.py:24
+msgid "WALL_ALREADY_IN_THE_QUEUE"
+msgstr "This post is already in the queue! Send it again?"
+
+#: app/bot/plugins/wall.py:25
+msgid "WALL_ALREADY_STARTED"
+msgstr "This post is already handling! Send it again?"
+
+#: app/bot/plugins/wall.py:26
+msgid "WALL_FOUND_IN_TGM"
+msgstr "Post found! Send it again?"
+
+#: app/bot/plugins/wall.py:27
+msgid "WALL_NOT_FOUND_IN_TGM"
+msgstr "No such post found in Telegram channel! Send it?"
+
+#: app/bot/plugins/wall.py:28
+msgid "WALL_ADDED_TO_THE_QUEUE"
+msgstr "The post has been added to the queue!"
+
+#: app/bot/plugins/wall.py:29
+msgid "WALL_UNKNOWN_CHANNEL"
+msgstr "Error. This bot is not an admin in the specified Telegram channel."
+
+#: app/bot/plugins/wall.py:30
+msgid "WALL_YES"
+msgstr "Yes"
+
+#: app/bot/plugins/wall.py:31
+msgid "WALL_CANCEL"
+msgstr "Cancel"
+
+#: app/handlers/playlist.py:21
+msgid "PL_READY"
+msgstr "Listen to the playlist"
+
+#: app/handlers/playlist.py:22
+msgid "PL_GO_TO_WALL"
+msgstr "Go to post"
+
+#: app/handlers/playlist.py:23
+msgid "PL_OF"
+msgstr "of"
+
+#: app/handlers/text.py:17
+msgid "SOURCE"
+msgstr "Source"
+
+#: app/handlers/text.py:18
+msgid "VK_POST"
+msgstr "VK post"
+
+#: app/handlers/text.py:19
+msgid "VK_REPOST"
+msgstr "VK repost"
+
+#: app/handlers/text.py:20
+msgid "VK_PLAYLIST"
+msgstr "VK playlist"
+
+#: app/handlers/wall.py:32
+msgid "PL_SOON"
+msgstr "Playlist link will be here soon..."
+
diff --git a/locale/ru/LC_MESSAGES/vtt.mo b/locale/ru/LC_MESSAGES/vtt.mo
new file mode 100644
index 0000000..d0c0692
Binary files /dev/null and b/locale/ru/LC_MESSAGES/vtt.mo differ
diff --git a/locale/ru/LC_MESSAGES/vtt.po b/locale/ru/LC_MESSAGES/vtt.po
new file mode 100644
index 0000000..299c86b
--- /dev/null
+++ b/locale/ru/LC_MESSAGES/vtt.po
@@ -0,0 +1,179 @@
+# Russian translations for PROJECT.
+# Copyright (C) 2022 ORGANIZATION
+# This file is distributed under the same license as the PROJECT project.
+# FIRST AUTHOR , 2022.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PROJECT VERSION\n"
+"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
+"POT-Creation-Date: 2022-04-27 02:39+0300\n"
+"PO-Revision-Date: 2022-04-22 21:41+0300\n"
+"Last-Translator: FULL NAME \n"
+"Language: ru\n"
+"Language-Team: ru \n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: Babel 2.10.1\n"
+
+#: app/bot/plugins/__init__.py:15
+msgid "INCORRECT_LINK"
+msgstr ""
+"Неверная ссылка. Пожалуйста, попробуйте еще раз в одном из следующих "
+"форматов"
+
+#: app/bot/plugins/common.py:16
+msgid "HELLO"
+msgstr "Привет!"
+
+#: app/bot/plugins/common.py:17
+msgid "PERMISSION_CHECK_FAILED"
+msgstr ""
+"Не удалось проверить разрешения. Что-то не так на стороне Telegram.\n"
+"Попробуйте еще раз позже."
+
+#: app/bot/plugins/common.py:18
+msgid "NO_PERMISSION"
+msgstr ""
+"К сожалению, у вас нет необходимых разрешений для использования этого "
+"бота :("
+
+#: app/bot/plugins/common.py:19
+msgid "WAITING_FOR_LINK"
+msgstr "Пришлите мне VK ссылку!"
+
+#: app/bot/plugins/common.py:20
+msgid "CANCELLED"
+msgstr "Операция отменена."
+
+#: app/bot/plugins/common.py:21
+msgid "CLICK_BUTTON"
+msgstr "Пожалуйста, нажмите одну из кнопок!"
+
+#: app/bot/plugins/playlist.py:22
+msgid "PL_NOT_READY"
+msgstr "Плейлист еще не готов!"
+
+#: app/bot/plugins/playlist.py:23
+msgid "PL_SEARCHING"
+msgstr "Поиск..."
+
+#: app/bot/plugins/playlist.py:24
+msgid "PL_NOT_FOUND_IN_VK"
+msgstr ""
+"Не удалось найти такой плейлист в VK! Либо неверная ссылка, либо плейлист"
+" является приватным. Пожалуйста, попробуйте другую ссылку."
+
+#: app/bot/plugins/playlist.py:25
+msgid "PL_ALREADY_IN_THE_QUEUE"
+msgstr "Этот плейлист уже в очереди! Отправить еще раз?"
+
+#: app/bot/plugins/playlist.py:26
+msgid "PL_ALREADY_STARTED"
+msgstr "Этот плейлист уже обрабатывается! Отправить еще раз?"
+
+#: app/bot/plugins/playlist.py:27
+msgid "PL_FOUND_IN_TGM"
+msgstr "Плейлист найден! Отправить еще раз?"
+
+#: app/bot/plugins/playlist.py:28
+msgid "PL_NOT_FOUND_IN_TGM"
+msgstr "В Telegram канале такой плейлист не найден! Отправить?"
+
+#: app/bot/plugins/playlist.py:29
+msgid "PL_ADDED_TO_THE_QUEUE"
+msgstr "Плейлист добавлен в очередь!"
+
+#: app/bot/plugins/playlist.py:30
+msgid "PL_UNKNOWN_CHANNEL"
+msgstr ""
+"Ошибка. Данный бот не является администратором в указанном Telegram "
+"канале."
+
+#: app/bot/plugins/playlist.py:31
+msgid "PL_YES"
+msgstr "Да"
+
+#: app/bot/plugins/playlist.py:32
+msgid "PL_CANCEL"
+msgstr "Отмена"
+
+#: app/bot/plugins/wall.py:22
+msgid "WALL_SEARCHING"
+msgstr "Поиск..."
+
+#: app/bot/plugins/wall.py:23
+msgid "WALL_NOT_FOUND_IN_VK"
+msgstr ""
+"Не удалось найти пост в VK! Либо неверная ссылка, либо пост является "
+"приватным. Пожалуйста, попробуйте другую ссылку."
+
+#: app/bot/plugins/wall.py:24
+msgid "WALL_ALREADY_IN_THE_QUEUE"
+msgstr "Этот пост уже в очереди! Отправить еще раз?"
+
+#: app/bot/plugins/wall.py:25
+msgid "WALL_ALREADY_STARTED"
+msgstr "Этот пост уже обрабатывается! Отправить еще раз?"
+
+#: app/bot/plugins/wall.py:26
+msgid "WALL_FOUND_IN_TGM"
+msgstr "Пост найден! Отправить еще раз?"
+
+#: app/bot/plugins/wall.py:27
+msgid "WALL_NOT_FOUND_IN_TGM"
+msgstr "В Telegram канале такой пост не найден! Отправить?"
+
+#: app/bot/plugins/wall.py:28
+msgid "WALL_ADDED_TO_THE_QUEUE"
+msgstr "Пост добавлен в очередь!"
+
+#: app/bot/plugins/wall.py:29
+msgid "WALL_UNKNOWN_CHANNEL"
+msgstr ""
+"Ошибка. Данный бот не является администратором в указанном Telegram "
+"канале."
+
+#: app/bot/plugins/wall.py:30
+msgid "WALL_YES"
+msgstr "Да"
+
+#: app/bot/plugins/wall.py:31
+msgid "WALL_CANCEL"
+msgstr "Отмена"
+
+#: app/handlers/playlist.py:21
+msgid "PL_READY"
+msgstr "Слушать плейлист"
+
+#: app/handlers/playlist.py:22
+msgid "PL_GO_TO_WALL"
+msgstr "Перейти к посту"
+
+#: app/handlers/playlist.py:23
+msgid "PL_OF"
+msgstr "из"
+
+#: app/handlers/text.py:17
+msgid "SOURCE"
+msgstr "Источник"
+
+#: app/handlers/text.py:18
+msgid "VK_POST"
+msgstr "Пост в VK"
+
+#: app/handlers/text.py:19
+msgid "VK_REPOST"
+msgstr "Репост в VK"
+
+#: app/handlers/text.py:20
+msgid "VK_PLAYLIST"
+msgstr "Плейлист в VK"
+
+#: app/handlers/wall.py:32
+msgid "PL_SOON"
+msgstr "Ссылка на плейлист скоро появится..."
+
diff --git a/logs/.gitignore b/logs/.gitignore
new file mode 100644
index 0000000..86de975
--- /dev/null
+++ b/logs/.gitignore
@@ -0,0 +1 @@
+*.log*
\ No newline at end of file
diff --git a/poetry.lock b/poetry.lock
new file mode 100644
index 0000000..7039b3d
--- /dev/null
+++ b/poetry.lock
@@ -0,0 +1,2137 @@
+[[package]]
+name = "aiofiles"
+version = "0.8.0"
+description = "File support for asyncio."
+category = "main"
+optional = false
+python-versions = ">=3.6,<4.0"
+
+[[package]]
+name = "aiohttp"
+version = "3.8.1"
+description = "Async http client/server framework (asyncio)"
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+aiosignal = ">=1.1.2"
+async-timeout = ">=4.0.0a3,<5.0"
+attrs = ">=17.3.0"
+charset-normalizer = ">=2.0,<3.0"
+frozenlist = ">=1.1.1"
+multidict = ">=4.5,<7.0"
+yarl = ">=1.0,<2.0"
+
+[package.extras]
+speedups = ["aiodns", "brotli", "cchardet"]
+
+[[package]]
+name = "aiosignal"
+version = "1.2.0"
+description = "aiosignal: a list of registered asynchronous callbacks"
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+frozenlist = ">=1.1.0"
+
+[[package]]
+name = "amqp"
+version = "5.1.1"
+description = "Low-level AMQP client for Python (fork of amqplib)."
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+vine = ">=5.0.0"
+
+[[package]]
+name = "anyio"
+version = "3.5.0"
+description = "High level compatibility layer for multiple asynchronous event loop implementations"
+category = "main"
+optional = false
+python-versions = ">=3.6.2"
+
+[package.dependencies]
+idna = ">=2.8"
+sniffio = ">=1.1"
+
+[package.extras]
+doc = ["packaging", "sphinx-rtd-theme", "sphinx-autodoc-typehints (>=1.2.0)"]
+test = ["coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "pytest (>=6.0)", "pytest-mock (>=3.6.1)", "trustme", "contextlib2", "uvloop (<0.15)", "mock (>=4)", "uvloop (>=0.15)"]
+trio = ["trio (>=0.16)"]
+
+[[package]]
+name = "asgiref"
+version = "3.5.0"
+description = "ASGI specs, helper code, and adapters"
+category = "main"
+optional = false
+python-versions = ">=3.7"
+
+[package.extras]
+tests = ["pytest", "pytest-asyncio", "mypy (>=0.800)"]
+
+[[package]]
+name = "async-timeout"
+version = "4.0.2"
+description = "Timeout context manager for asyncio programs"
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[[package]]
+name = "attrs"
+version = "21.4.0"
+description = "Classes Without Boilerplate"
+category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+
+[package.extras]
+dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit", "cloudpickle"]
+docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"]
+tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "cloudpickle"]
+tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "cloudpickle"]
+
+[[package]]
+name = "babel"
+version = "2.10.1"
+description = "Internationalization utilities"
+category = "dev"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+pytz = ">=2015.7"
+
+[[package]]
+name = "bandit"
+version = "1.7.4"
+description = "Security oriented static analyser for python code."
+category = "dev"
+optional = false
+python-versions = ">=3.7"
+
+[package.dependencies]
+colorama = {version = ">=0.3.9", markers = "platform_system == \"Windows\""}
+GitPython = ">=1.0.1"
+PyYAML = ">=5.3.1"
+stevedore = ">=1.20.0"
+
+[package.extras]
+test = ["coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "toml", "beautifulsoup4 (>=4.8.0)", "pylint (==1.9.4)"]
+toml = ["toml"]
+yaml = ["pyyaml"]
+
+[[package]]
+name = "billiard"
+version = "3.6.4.0"
+description = "Python multiprocessing fork with improvements and bugfixes"
+category = "main"
+optional = false
+python-versions = "*"
+
+[[package]]
+name = "black"
+version = "22.3.0"
+description = "The uncompromising code formatter."
+category = "dev"
+optional = false
+python-versions = ">=3.6.2"
+
+[package.dependencies]
+click = ">=8.0.0"
+mypy-extensions = ">=0.4.3"
+pathspec = ">=0.9.0"
+platformdirs = ">=2"
+tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}
+typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""}
+
+[package.extras]
+colorama = ["colorama (>=0.4.3)"]
+d = ["aiohttp (>=3.7.4)"]
+jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"]
+uvloop = ["uvloop (>=0.15.2)"]
+
+[[package]]
+name = "celery"
+version = "5.2.6"
+description = "Distributed Task Queue."
+category = "main"
+optional = false
+python-versions = ">=3.7,"
+
+[package.dependencies]
+billiard = ">=3.6.4.0,<4.0"
+click = ">=8.0.3,<9.0"
+click-didyoumean = ">=0.0.3"
+click-plugins = ">=1.1.1"
+click-repl = ">=0.2.0"
+kombu = ">=5.2.3,<6.0"
+pytz = ">=2021.3"
+vine = ">=5.0.0,<6.0"
+
+[package.extras]
+arangodb = ["pyArango (>=1.3.2)"]
+auth = ["cryptography"]
+azureblockblob = ["azure-storage-blob (==12.9.0)"]
+brotli = ["brotli (>=1.0.0)", "brotlipy (>=0.7.0)"]
+cassandra = ["cassandra-driver (<3.21.0)"]
+consul = ["python-consul2"]
+cosmosdbsql = ["pydocumentdb (==2.3.2)"]
+couchbase = ["couchbase (>=3.0.0)"]
+couchdb = ["pycouchdb"]
+django = ["Django (>=1.11)"]
+dynamodb = ["boto3 (>=1.9.178)"]
+elasticsearch = ["elasticsearch"]
+eventlet = ["eventlet (>=0.32.0)"]
+gevent = ["gevent (>=1.5.0)"]
+librabbitmq = ["librabbitmq (>=1.5.0)"]
+memcache = ["pylibmc"]
+mongodb = ["pymongo[srv] (>=3.11.1)"]
+msgpack = ["msgpack"]
+pymemcache = ["python-memcached"]
+pyro = ["pyro4"]
+pytest = ["pytest-celery"]
+redis = ["redis (>=3.4.1,!=4.0.0,!=4.0.1)"]
+s3 = ["boto3 (>=1.9.125)"]
+slmq = ["softlayer-messaging (>=1.0.3)"]
+solar = ["ephem"]
+sqlalchemy = ["sqlalchemy"]
+sqs = ["kombu"]
+tblib = ["tblib (>=1.3.0)", "tblib (>=1.5.0)"]
+yaml = ["PyYAML (>=3.10)"]
+zookeeper = ["kazoo (>=1.3.1)"]
+zstd = ["zstandard"]
+
+[[package]]
+name = "certifi"
+version = "2021.10.8"
+description = "Python package for providing Mozilla's CA Bundle."
+category = "main"
+optional = false
+python-versions = "*"
+
+[[package]]
+name = "cffi"
+version = "1.15.0"
+description = "Foreign Function Interface for Python calling C code."
+category = "main"
+optional = false
+python-versions = "*"
+
+[package.dependencies]
+pycparser = "*"
+
+[[package]]
+name = "charset-normalizer"
+version = "2.0.12"
+description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
+category = "main"
+optional = false
+python-versions = ">=3.5.0"
+
+[package.extras]
+unicode_backport = ["unicodedata2"]
+
+[[package]]
+name = "choicelib"
+version = "0.1.5"
+description = "Choice a best similar-interface library from given list"
+category = "main"
+optional = false
+python-versions = ">=3.7,<4.0"
+
+[package.dependencies]
+typing-extensions = ">=4.0.1,<5.0.0"
+
+[[package]]
+name = "click"
+version = "8.1.2"
+description = "Composable command line interface toolkit"
+category = "main"
+optional = false
+python-versions = ">=3.7"
+
+[package.dependencies]
+colorama = {version = "*", markers = "platform_system == \"Windows\""}
+
+[[package]]
+name = "click-didyoumean"
+version = "0.3.0"
+description = "Enables git-like *did-you-mean* feature in click"
+category = "main"
+optional = false
+python-versions = ">=3.6.2,<4.0.0"
+
+[package.dependencies]
+click = ">=7"
+
+[[package]]
+name = "click-plugins"
+version = "1.1.1"
+description = "An extension module for click to enable registering CLI commands via setuptools entry-points."
+category = "main"
+optional = false
+python-versions = "*"
+
+[package.dependencies]
+click = ">=4.0"
+
+[package.extras]
+dev = ["pytest (>=3.6)", "pytest-cov", "wheel", "coveralls"]
+
+[[package]]
+name = "click-repl"
+version = "0.2.0"
+description = "REPL plugin for Click"
+category = "main"
+optional = false
+python-versions = "*"
+
+[package.dependencies]
+click = "*"
+prompt-toolkit = "*"
+six = "*"
+
+[[package]]
+name = "colorama"
+version = "0.4.4"
+description = "Cross-platform colored terminal text."
+category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+
+[[package]]
+name = "coverage"
+version = "5.5"
+description = "Code coverage measurement for Python"
+category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
+
+[package.dependencies]
+toml = {version = "*", optional = true, markers = "extra == \"toml\""}
+
+[package.extras]
+toml = ["toml"]
+
+[[package]]
+name = "cryptg"
+version = "0.2.post4"
+description = "Cryptographic utilities for Telegram."
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+cffi = ">=1.0.0"
+pycparser = "*"
+
+[[package]]
+name = "deprecation"
+version = "2.1.0"
+description = "A library to handle automated deprecations"
+category = "main"
+optional = false
+python-versions = "*"
+
+[package.dependencies]
+packaging = "*"
+
+[[package]]
+name = "eyed3"
+version = "0.9.6"
+description = "Python audio data toolkit (ID3 and MP3)"
+category = "main"
+optional = false
+python-versions = ">=3.6,<4.0"
+
+[package.dependencies]
+coverage = {version = ">=5.3.1,<6.0.0", extras = ["toml"]}
+deprecation = ">=2.1.0,<3.0.0"
+filetype = ">=1.0.7,<2.0.0"
+
+[package.extras]
+yaml-plugin = ["ruamel.yaml (>=0.16.12,<0.17.0)"]
+display-plugin = ["grako (>=3.99.9,<4.0.0)"]
+art-plugin = ["Pillow (>=8.0.1,<9.0.0)", "pylast (>=4.0.0,<5.0.0)", "requests (>=2.25.0,<3.0.0)"]
+test = ["pytest (>=6.2.1,<7.0.0)", "pytest-cov (>=2.10.1,<3.0.0)", "tox (>=3.20.1,<4.0.0)", "factory-boy (>=3.1.0,<4.0.0)", "flake8 (>=3.8.4,<4.0.0)", "check-manifest (>=0.45,<0.46)"]
+
+[[package]]
+name = "fastapi"
+version = "0.75.2"
+description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
+category = "main"
+optional = false
+python-versions = ">=3.6.1"
+
+[package.dependencies]
+pydantic = ">=1.6.2,<1.7 || >1.7,<1.7.1 || >1.7.1,<1.7.2 || >1.7.2,<1.7.3 || >1.7.3,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0"
+starlette = "0.17.1"
+
+[package.extras]
+all = ["requests (>=2.24.0,<3.0.0)", "jinja2 (>=2.11.2,<4.0.0)", "python-multipart (>=0.0.5,<0.0.6)", "itsdangerous (>=1.1.0,<3.0.0)", "pyyaml (>=5.3.1,<7.0.0)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,<6.0.0)", "orjson (>=3.2.1,<4.0.0)", "email_validator (>=1.1.1,<2.0.0)", "uvicorn[standard] (>=0.12.0,<0.18.0)"]
+dev = ["python-jose[cryptography] (>=3.3.0,<4.0.0)", "passlib[bcrypt] (>=1.7.2,<2.0.0)", "autoflake (>=1.4.0,<2.0.0)", "flake8 (>=3.8.3,<4.0.0)", "uvicorn[standard] (>=0.12.0,<0.18.0)"]
+doc = ["mkdocs (>=1.1.2,<2.0.0)", "mkdocs-material (>=8.1.4,<9.0.0)", "mdx-include (>=1.4.1,<2.0.0)", "mkdocs-markdownextradata-plugin (>=0.1.7,<0.3.0)", "typer (>=0.4.1,<0.5.0)", "pyyaml (>=5.3.1,<7.0.0)"]
+test = ["pytest (>=6.2.4,<7.0.0)", "pytest-cov (>=2.12.0,<4.0.0)", "mypy (==0.910)", "flake8 (>=3.8.3,<4.0.0)", "black (==22.3.0)", "isort (>=5.0.6,<6.0.0)", "requests (>=2.24.0,<3.0.0)", "httpx (>=0.14.0,<0.19.0)", "email_validator (>=1.1.1,<2.0.0)", "sqlalchemy (>=1.3.18,<1.5.0)", "peewee (>=3.13.3,<4.0.0)", "databases[sqlite] (>=0.3.2,<0.6.0)", "orjson (>=3.2.1,<4.0.0)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,<6.0.0)", "python-multipart (>=0.0.5,<0.0.6)", "flask (>=1.1.2,<3.0.0)", "anyio[trio] (>=3.2.1,<4.0.0)", "types-ujson (==4.2.1)", "types-orjson (==3.6.2)", "types-dataclasses (==0.6.5)"]
+
+[[package]]
+name = "ffmpeg-python"
+version = "0.2.0"
+description = "Python bindings for FFmpeg - with complex filtering support"
+category = "main"
+optional = false
+python-versions = "*"
+
+[package.dependencies]
+future = "*"
+
+[package.extras]
+dev = ["future (==0.17.1)", "numpy (==1.16.4)", "pytest-mock (==1.10.4)", "pytest (==4.6.1)", "Sphinx (==2.1.0)", "tox (==3.12.1)"]
+
+[[package]]
+name = "filetype"
+version = "1.0.13"
+description = "Infer file type and MIME type of any file/buffer. No external dependencies."
+category = "main"
+optional = false
+python-versions = "*"
+
+[[package]]
+name = "flake8"
+version = "4.0.1"
+description = "the modular source code checker: pep8 pyflakes and co"
+category = "dev"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+mccabe = ">=0.6.0,<0.7.0"
+pycodestyle = ">=2.8.0,<2.9.0"
+pyflakes = ">=2.4.0,<2.5.0"
+
+[[package]]
+name = "flake8-bugbear"
+version = "22.4.25"
+description = "A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle."
+category = "dev"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+attrs = ">=19.2.0"
+flake8 = ">=3.0.0"
+
+[package.extras]
+dev = ["coverage", "hypothesis", "hypothesmith (>=0.2)", "pre-commit"]
+
+[[package]]
+name = "flake8-comprehensions"
+version = "3.8.0"
+description = "A flake8 plugin to help you write better list/set/dict comprehensions."
+category = "dev"
+optional = false
+python-versions = ">=3.7"
+
+[package.dependencies]
+flake8 = ">=3.0,<3.2.0 || >3.2.0"
+
+[[package]]
+name = "flake8-tidy-imports"
+version = "4.6.0"
+description = "A flake8 plugin that helps you write tidier imports."
+category = "dev"
+optional = false
+python-versions = ">=3.7"
+
+[package.dependencies]
+flake8 = ">=3.8.0"
+
+[[package]]
+name = "frozenlist"
+version = "1.3.0"
+description = "A list-like structure which implements collections.abc.MutableSequence"
+category = "main"
+optional = false
+python-versions = ">=3.7"
+
+[[package]]
+name = "future"
+version = "0.18.2"
+description = "Clean single-source support for Python 3 and 2"
+category = "main"
+optional = false
+python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+
+[[package]]
+name = "gitdb"
+version = "4.0.9"
+description = "Git Object Database"
+category = "dev"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+smmap = ">=3.0.1,<6"
+
+[[package]]
+name = "gitpython"
+version = "3.1.27"
+description = "GitPython is a python library used to interact with Git repositories"
+category = "dev"
+optional = false
+python-versions = ">=3.7"
+
+[package.dependencies]
+gitdb = ">=4.0.1,<5"
+
+[[package]]
+name = "greenlet"
+version = "1.1.2"
+description = "Lightweight in-process concurrent programming"
+category = "main"
+optional = false
+python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*"
+
+[package.extras]
+docs = ["sphinx"]
+
+[[package]]
+name = "gunicorn"
+version = "20.1.0"
+description = "WSGI HTTP Server for UNIX"
+category = "main"
+optional = false
+python-versions = ">=3.5"
+
+[package.extras]
+eventlet = ["eventlet (>=0.24.1)"]
+gevent = ["gevent (>=1.4.0)"]
+setproctitle = ["setproctitle"]
+tornado = ["tornado (>=0.2)"]
+
+[[package]]
+name = "h11"
+version = "0.13.0"
+description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[[package]]
+name = "hachoir"
+version = "3.1.3"
+description = "Package of Hachoir parsers used to open binary files"
+category = "main"
+optional = false
+python-versions = "*"
+
+[package.extras]
+urwid = ["urwid (==1.3.1)"]
+wx = ["darkdetect", "wxPython (>=4.0.0,<5.0.0)"]
+
+[[package]]
+name = "httptools"
+version = "0.4.0"
+description = "A collection of framework independent HTTP protocol utils."
+category = "main"
+optional = false
+python-versions = ">=3.5.0"
+
+[package.extras]
+test = ["Cython (>=0.29.24,<0.30.0)"]
+
+[[package]]
+name = "idna"
+version = "3.3"
+description = "Internationalized Domain Names in Applications (IDNA)"
+category = "main"
+optional = false
+python-versions = ">=3.5"
+
+[[package]]
+name = "isort"
+version = "5.10.1"
+description = "A Python utility / library to sort Python imports."
+category = "dev"
+optional = false
+python-versions = ">=3.6.1,<4.0"
+
+[package.extras]
+pipfile_deprecated_finder = ["pipreqs", "requirementslib"]
+requirements_deprecated_finder = ["pipreqs", "pip-api"]
+colors = ["colorama (>=0.4.3,<0.5.0)"]
+plugins = ["setuptools"]
+
+[[package]]
+name = "kombu"
+version = "5.2.4"
+description = "Messaging library for Python."
+category = "main"
+optional = false
+python-versions = ">=3.7"
+
+[package.dependencies]
+amqp = ">=5.0.9,<6.0.0"
+vine = "*"
+
+[package.extras]
+azureservicebus = ["azure-servicebus (>=7.0.0)"]
+azurestoragequeues = ["azure-storage-queue"]
+consul = ["python-consul (>=0.6.0)"]
+librabbitmq = ["librabbitmq (>=2.0.0)"]
+mongodb = ["pymongo (>=3.3.0,<3.12.1)"]
+msgpack = ["msgpack"]
+pyro = ["pyro4"]
+qpid = ["qpid-python (>=0.26)", "qpid-tools (>=0.26)"]
+redis = ["redis (>=3.4.1,!=4.0.0,!=4.0.1)"]
+slmq = ["softlayer-messaging (>=1.0.3)"]
+sqlalchemy = ["sqlalchemy"]
+sqs = ["boto3 (>=1.9.12)", "pycurl (>=7.44.1,<7.45.0)", "urllib3 (>=1.26.7)"]
+yaml = ["PyYAML (>=3.10)"]
+zookeeper = ["kazoo (>=1.3.1)"]
+
+[[package]]
+name = "mccabe"
+version = "0.6.1"
+description = "McCabe checker, plugin for flake8"
+category = "dev"
+optional = false
+python-versions = "*"
+
+[[package]]
+name = "multidict"
+version = "6.0.2"
+description = "multidict implementation"
+category = "main"
+optional = false
+python-versions = ">=3.7"
+
+[[package]]
+name = "mypy-extensions"
+version = "0.4.3"
+description = "Experimental type system extensions for programs checked with the mypy typechecker."
+category = "dev"
+optional = false
+python-versions = "*"
+
+[[package]]
+name = "packaging"
+version = "21.3"
+description = "Core utilities for Python packages"
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+pyparsing = ">=2.0.2,<3.0.5 || >3.0.5"
+
+[[package]]
+name = "pathspec"
+version = "0.9.0"
+description = "Utility library for gitignore style pattern matching of file paths."
+category = "dev"
+optional = false
+python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7"
+
+[[package]]
+name = "pbr"
+version = "5.8.1"
+description = "Python Build Reasonableness"
+category = "dev"
+optional = false
+python-versions = ">=2.6"
+
+[[package]]
+name = "pillow"
+version = "9.1.0"
+description = "Python Imaging Library (Fork)"
+category = "main"
+optional = false
+python-versions = ">=3.7"
+
+[package.extras]
+docs = ["olefile", "sphinx (>=2.4)", "sphinx-copybutton", "sphinx-issues (>=3.0.1)", "sphinx-removed-in", "sphinx-rtd-theme (>=1.0)", "sphinxext-opengraph"]
+tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "packaging", "pyroma", "pytest", "pytest-cov", "pytest-timeout"]
+
+[[package]]
+name = "platformdirs"
+version = "2.5.2"
+description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
+category = "dev"
+optional = false
+python-versions = ">=3.7"
+
+[package.extras]
+docs = ["furo (>=2021.7.5b38)", "proselint (>=0.10.2)", "sphinx-autodoc-typehints (>=1.12)", "sphinx (>=4)"]
+test = ["appdirs (==1.4.4)", "pytest-cov (>=2.7)", "pytest-mock (>=3.6)", "pytest (>=6)"]
+
+[[package]]
+name = "prompt-toolkit"
+version = "3.0.29"
+description = "Library for building powerful interactive command lines in Python"
+category = "main"
+optional = false
+python-versions = ">=3.6.2"
+
+[package.dependencies]
+wcwidth = "*"
+
+[[package]]
+name = "pyaes"
+version = "1.6.1"
+description = "Pure-Python Implementation of the AES block-cipher and common modes of operation"
+category = "main"
+optional = false
+python-versions = "*"
+
+[[package]]
+name = "pyasn1"
+version = "0.4.8"
+description = "ASN.1 types and codecs"
+category = "main"
+optional = false
+python-versions = "*"
+
+[[package]]
+name = "pycodestyle"
+version = "2.8.0"
+description = "Python style guide checker"
+category = "dev"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+
+[[package]]
+name = "pycparser"
+version = "2.21"
+description = "C parser in Python"
+category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+
+[[package]]
+name = "pydantic"
+version = "1.9.0"
+description = "Data validation and settings management using python 3.6 type hinting"
+category = "main"
+optional = false
+python-versions = ">=3.6.1"
+
+[package.dependencies]
+typing-extensions = ">=3.7.4.3"
+
+[package.extras]
+dotenv = ["python-dotenv (>=0.10.4)"]
+email = ["email-validator (>=1.0.3)"]
+
+[[package]]
+name = "pyflakes"
+version = "2.4.0"
+description = "passive checker of Python programs"
+category = "dev"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+
+[[package]]
+name = "pyparsing"
+version = "3.0.8"
+description = "pyparsing module - Classes and methods to define and execute parsing grammars"
+category = "main"
+optional = false
+python-versions = ">=3.6.8"
+
+[package.extras]
+diagrams = ["railroad-diagrams", "jinja2"]
+
+[[package]]
+name = "python-dotenv"
+version = "0.20.0"
+description = "Read key-value pairs from a .env file and set them as environment variables"
+category = "main"
+optional = false
+python-versions = ">=3.5"
+
+[package.extras]
+cli = ["click (>=5.0)"]
+
+[[package]]
+name = "pytz"
+version = "2022.1"
+description = "World timezone definitions, modern and historical"
+category = "main"
+optional = false
+python-versions = "*"
+
+[[package]]
+name = "pyyaml"
+version = "6.0"
+description = "YAML parser and emitter for Python"
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[[package]]
+name = "requests"
+version = "2.27.1"
+description = "Python HTTP for Humans."
+category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*"
+
+[package.dependencies]
+certifi = ">=2017.4.17"
+charset-normalizer = {version = ">=2.0.0,<2.1.0", markers = "python_version >= \"3\""}
+idna = {version = ">=2.5,<4", markers = "python_version >= \"3\""}
+urllib3 = ">=1.21.1,<1.27"
+
+[package.extras]
+socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"]
+use_chardet_on_py3 = ["chardet (>=3.0.2,<5)"]
+
+[[package]]
+name = "rsa"
+version = "4.8"
+description = "Pure-Python RSA implementation"
+category = "main"
+optional = false
+python-versions = ">=3.6,<4"
+
+[package.dependencies]
+pyasn1 = ">=0.1.3"
+
+[[package]]
+name = "six"
+version = "1.16.0"
+description = "Python 2 and 3 compatibility utilities"
+category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+
+[[package]]
+name = "smmap"
+version = "5.0.0"
+description = "A pure Python implementation of a sliding window memory map manager"
+category = "dev"
+optional = false
+python-versions = ">=3.6"
+
+[[package]]
+name = "sniffio"
+version = "1.2.0"
+description = "Sniff out which async library your code is running under"
+category = "main"
+optional = false
+python-versions = ">=3.5"
+
+[[package]]
+name = "sqlalchemy"
+version = "1.4.35"
+description = "Database Abstraction Library"
+category = "main"
+optional = false
+python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+
+[package.dependencies]
+greenlet = {version = "!=0.4.17", markers = "python_version >= \"3\" and (platform_machine == \"aarch64\" or platform_machine == \"ppc64le\" or platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"AMD64\" or platform_machine == \"win32\" or platform_machine == \"WIN32\")"}
+
+[package.extras]
+aiomysql = ["greenlet (!=0.4.17)", "aiomysql"]
+aiosqlite = ["typing_extensions (!=3.10.0.1)", "greenlet (!=0.4.17)", "aiosqlite"]
+asyncio = ["greenlet (!=0.4.17)"]
+asyncmy = ["greenlet (!=0.4.17)", "asyncmy (>=0.2.3,!=0.2.4)"]
+mariadb_connector = ["mariadb (>=1.0.1)"]
+mssql = ["pyodbc"]
+mssql_pymssql = ["pymssql"]
+mssql_pyodbc = ["pyodbc"]
+mypy = ["sqlalchemy2-stubs", "mypy (>=0.910)"]
+mysql = ["mysqlclient (>=1.4.0,<2)", "mysqlclient (>=1.4.0)"]
+mysql_connector = ["mysql-connector-python"]
+oracle = ["cx_oracle (>=7,<8)", "cx_oracle (>=7)"]
+postgresql = ["psycopg2 (>=2.7)"]
+postgresql_asyncpg = ["greenlet (!=0.4.17)", "asyncpg"]
+postgresql_pg8000 = ["pg8000 (>=1.16.6)"]
+postgresql_psycopg2binary = ["psycopg2-binary"]
+postgresql_psycopg2cffi = ["psycopg2cffi"]
+pymysql = ["pymysql (<1)", "pymysql"]
+sqlcipher = ["sqlcipher3-binary"]
+
+[[package]]
+name = "sqlalchemy2-stubs"
+version = "0.0.2a22"
+description = "Typing Stubs for SQLAlchemy 1.4"
+category = "dev"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+typing-extensions = ">=3.7.4"
+
+[[package]]
+name = "starlette"
+version = "0.17.1"
+description = "The little ASGI library that shines."
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+anyio = ">=3.0.0,<4"
+
+[package.extras]
+full = ["itsdangerous", "jinja2", "python-multipart", "pyyaml", "requests"]
+
+[[package]]
+name = "stevedore"
+version = "3.5.0"
+description = "Manage dynamic plugins for Python applications"
+category = "dev"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+
+[[package]]
+name = "telethon"
+version = "1.24.0"
+description = "Full-featured Telegram client library for Python 3"
+category = "main"
+optional = false
+python-versions = ">=3.5"
+
+[package.dependencies]
+pyaes = "*"
+rsa = "*"
+
+[package.extras]
+cryptg = ["cryptg"]
+
+[[package]]
+name = "toml"
+version = "0.10.2"
+description = "Python Library for Tom's Obvious, Minimal Language"
+category = "main"
+optional = false
+python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+
+[[package]]
+name = "tomli"
+version = "1.2.3"
+description = "A lil' TOML parser"
+category = "dev"
+optional = false
+python-versions = ">=3.6"
+
+[[package]]
+name = "typing-extensions"
+version = "4.2.0"
+description = "Backported and Experimental Type Hints for Python 3.7+"
+category = "main"
+optional = false
+python-versions = ">=3.7"
+
+[[package]]
+name = "urllib3"
+version = "1.26.9"
+description = "HTTP library with thread-safe connection pooling, file post, and more."
+category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
+
+[package.extras]
+brotli = ["brotlicffi (>=0.8.0)", "brotli (>=1.0.9)", "brotlipy (>=0.6.0)"]
+secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "ipaddress"]
+socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
+
+[[package]]
+name = "uvicorn"
+version = "0.17.6"
+description = "The lightning-fast ASGI server."
+category = "main"
+optional = false
+python-versions = ">=3.7"
+
+[package.dependencies]
+asgiref = ">=3.4.0"
+click = ">=7.0"
+colorama = {version = ">=0.4", optional = true, markers = "sys_platform == \"win32\" and extra == \"standard\""}
+h11 = ">=0.8"
+httptools = {version = ">=0.4.0", optional = true, markers = "extra == \"standard\""}
+python-dotenv = {version = ">=0.13", optional = true, markers = "extra == \"standard\""}
+PyYAML = {version = ">=5.1", optional = true, markers = "extra == \"standard\""}
+uvloop = {version = ">=0.14.0,<0.15.0 || >0.15.0,<0.15.1 || >0.15.1", optional = true, markers = "sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\" and extra == \"standard\""}
+watchgod = {version = ">=0.6", optional = true, markers = "extra == \"standard\""}
+websockets = {version = ">=10.0", optional = true, markers = "extra == \"standard\""}
+
+[package.extras]
+standard = ["websockets (>=10.0)", "httptools (>=0.4.0)", "watchgod (>=0.6)", "python-dotenv (>=0.13)", "PyYAML (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "colorama (>=0.4)"]
+
+[[package]]
+name = "uvloop"
+version = "0.16.0"
+description = "Fast implementation of asyncio event loop on top of libuv"
+category = "main"
+optional = false
+python-versions = ">=3.7"
+
+[package.extras]
+dev = ["Cython (>=0.29.24,<0.30.0)", "pytest (>=3.6.0)", "Sphinx (>=4.1.2,<4.2.0)", "sphinxcontrib-asyncio (>=0.3.0,<0.4.0)", "sphinx-rtd-theme (>=0.5.2,<0.6.0)", "aiohttp", "flake8 (>=3.9.2,<3.10.0)", "psutil", "pycodestyle (>=2.7.0,<2.8.0)", "pyOpenSSL (>=19.0.0,<19.1.0)", "mypy (>=0.800)"]
+docs = ["Sphinx (>=4.1.2,<4.2.0)", "sphinxcontrib-asyncio (>=0.3.0,<0.4.0)", "sphinx-rtd-theme (>=0.5.2,<0.6.0)"]
+test = ["aiohttp", "flake8 (>=3.9.2,<3.10.0)", "psutil", "pycodestyle (>=2.7.0,<2.8.0)", "pyOpenSSL (>=19.0.0,<19.1.0)", "mypy (>=0.800)"]
+
+[[package]]
+name = "vbml"
+version = "1.1.post1"
+description = "Way to check, match & resist. Sofisticated object oriented regex-based text parser"
+category = "main"
+optional = false
+python-versions = ">=3.7,<4.0"
+
+[package.dependencies]
+typing_extensions = "*"
+
+[[package]]
+name = "vine"
+version = "5.0.0"
+description = "Promises, promises, promises."
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[[package]]
+name = "vkaudiotoken"
+version = "0.5.1"
+description = ""
+category = "main"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
+develop = false
+
+[package.dependencies]
+requests = "*"
+
+[package.source]
+type = "git"
+url = "https://github.com/Bizordec/vkaudiotoken-python.git"
+reference = "master"
+resolved_reference = "82da71d388345e7db825e045a1c4f71cb77a92e2"
+
+[[package]]
+name = "vkbottle"
+version = "4.2.2"
+description = "Homogenic! Customizable asynchronous VK API framework implementing comfort and speed"
+category = "main"
+optional = false
+python-versions = ">=3.7.2,<4.0.0"
+
+[package.dependencies]
+aiofiles = ">=0.8.0,<0.9.0"
+aiohttp = ">=3.6.2,<4.0.0"
+choicelib = ">=0.1.5,<0.2.0"
+pydantic = ">=1.8.2,<2.0.0"
+typing-extensions = ">=4.0.1,<5.0.0"
+vbml = ">=1.1.post1,<2.0"
+vkbottle-types = ">=5.131.134,<6.0.0"
+watchgod = ">=0.7,<0.9"
+
+[[package]]
+name = "vkbottle-types"
+version = "5.131.146.1"
+description = "Types for vkbottle"
+category = "main"
+optional = false
+python-versions = ">=3.7.2,<4.0.0"
+
+[package.dependencies]
+pydantic = ">=1.6.1,<2.0.0"
+vkbottle = ">=4.1,<5.0"
+
+[[package]]
+name = "watchgod"
+version = "0.7"
+description = "Simple, modern file watching and code reload in python."
+category = "main"
+optional = false
+python-versions = ">=3.5"
+
+[[package]]
+name = "wcwidth"
+version = "0.2.5"
+description = "Measures the displayed width of unicode strings in a terminal"
+category = "main"
+optional = false
+python-versions = "*"
+
+[[package]]
+name = "websockets"
+version = "10.3"
+description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)"
+category = "main"
+optional = false
+python-versions = ">=3.7"
+
+[[package]]
+name = "yarl"
+version = "1.7.2"
+description = "Yet another URL library"
+category = "main"
+optional = false
+python-versions = ">=3.6"
+
+[package.dependencies]
+idna = ">=2.0"
+multidict = ">=4.0"
+
+[metadata]
+lock-version = "1.1"
+python-versions = "^3.8"
+content-hash = "a2086773198ff179b35e801923b67af6e154640b5aab784c6331f7711649a518"
+
+[metadata.files]
+aiofiles = [
+ {file = "aiofiles-0.8.0-py3-none-any.whl", hash = "sha256:7a973fc22b29e9962d0897805ace5856e6a566ab1f0c8e5c91ff6c866519c937"},
+ {file = "aiofiles-0.8.0.tar.gz", hash = "sha256:8334f23235248a3b2e83b2c3a78a22674f39969b96397126cc93664d9a901e59"},
+]
+aiohttp = [
+ {file = "aiohttp-3.8.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:1ed0b6477896559f17b9eaeb6d38e07f7f9ffe40b9f0f9627ae8b9926ae260a8"},
+ {file = "aiohttp-3.8.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:7dadf3c307b31e0e61689cbf9e06be7a867c563d5a63ce9dca578f956609abf8"},
+ {file = "aiohttp-3.8.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a79004bb58748f31ae1cbe9fa891054baaa46fb106c2dc7af9f8e3304dc30316"},
+ {file = "aiohttp-3.8.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:12de6add4038df8f72fac606dff775791a60f113a725c960f2bab01d8b8e6b15"},
+ {file = "aiohttp-3.8.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6f0d5f33feb5f69ddd57a4a4bd3d56c719a141080b445cbf18f238973c5c9923"},
+ {file = "aiohttp-3.8.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:eaba923151d9deea315be1f3e2b31cc39a6d1d2f682f942905951f4e40200922"},
+ {file = "aiohttp-3.8.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:099ebd2c37ac74cce10a3527d2b49af80243e2a4fa39e7bce41617fbc35fa3c1"},
+ {file = "aiohttp-3.8.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:2e5d962cf7e1d426aa0e528a7e198658cdc8aa4fe87f781d039ad75dcd52c516"},
+ {file = "aiohttp-3.8.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:fa0ffcace9b3aa34d205d8130f7873fcfefcb6a4dd3dd705b0dab69af6712642"},
+ {file = "aiohttp-3.8.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:61bfc23df345d8c9716d03717c2ed5e27374e0fe6f659ea64edcd27b4b044cf7"},
+ {file = "aiohttp-3.8.1-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:31560d268ff62143e92423ef183680b9829b1b482c011713ae941997921eebc8"},
+ {file = "aiohttp-3.8.1-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:01d7bdb774a9acc838e6b8f1d114f45303841b89b95984cbb7d80ea41172a9e3"},
+ {file = "aiohttp-3.8.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:97ef77eb6b044134c0b3a96e16abcb05ecce892965a2124c566af0fd60f717e2"},
+ {file = "aiohttp-3.8.1-cp310-cp310-win32.whl", hash = "sha256:c2aef4703f1f2ddc6df17519885dbfa3514929149d3ff900b73f45998f2532fa"},
+ {file = "aiohttp-3.8.1-cp310-cp310-win_amd64.whl", hash = "sha256:713ac174a629d39b7c6a3aa757b337599798da4c1157114a314e4e391cd28e32"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:473d93d4450880fe278696549f2e7aed8cd23708c3c1997981464475f32137db"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:99b5eeae8e019e7aad8af8bb314fb908dd2e028b3cdaad87ec05095394cce632"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3af642b43ce56c24d063325dd2cf20ee012d2b9ba4c3c008755a301aaea720ad"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c3630c3ef435c0a7c549ba170a0633a56e92629aeed0e707fec832dee313fb7a"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:4a4a4e30bf1edcad13fb0804300557aedd07a92cabc74382fdd0ba6ca2661091"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:6f8b01295e26c68b3a1b90efb7a89029110d3a4139270b24fda961893216c440"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:a25fa703a527158aaf10dafd956f7d42ac6d30ec80e9a70846253dd13e2f067b"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:5bfde62d1d2641a1f5173b8c8c2d96ceb4854f54a44c23102e2ccc7e02f003ec"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:51467000f3647d519272392f484126aa716f747859794ac9924a7aafa86cd411"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:03a6d5349c9ee8f79ab3ff3694d6ce1cfc3ced1c9d36200cb8f08ba06bd3b782"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:102e487eeb82afac440581e5d7f8f44560b36cf0bdd11abc51a46c1cd88914d4"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-win32.whl", hash = "sha256:4aed991a28ea3ce320dc8ce655875e1e00a11bdd29fe9444dd4f88c30d558602"},
+ {file = "aiohttp-3.8.1-cp36-cp36m-win_amd64.whl", hash = "sha256:b0e20cddbd676ab8a64c774fefa0ad787cc506afd844de95da56060348021e96"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:37951ad2f4a6df6506750a23f7cbabad24c73c65f23f72e95897bb2cecbae676"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c23b1ad869653bc818e972b7a3a79852d0e494e9ab7e1a701a3decc49c20d51"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:15b09b06dae900777833fe7fc4b4aa426556ce95847a3e8d7548e2d19e34edb8"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:477c3ea0ba410b2b56b7efb072c36fa91b1e6fc331761798fa3f28bb224830dd"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:2f2f69dca064926e79997f45b2f34e202b320fd3782f17a91941f7eb85502ee2"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:ef9612483cb35171d51d9173647eed5d0069eaa2ee812793a75373447d487aa4"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:6d69f36d445c45cda7b3b26afef2fc34ef5ac0cdc75584a87ef307ee3c8c6d00"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:55c3d1072704d27401c92339144d199d9de7b52627f724a949fc7d5fc56d8b93"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:b9d00268fcb9f66fbcc7cd9fe423741d90c75ee029a1d15c09b22d23253c0a44"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:07b05cd3305e8a73112103c834e91cd27ce5b4bd07850c4b4dbd1877d3f45be7"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:c34dc4958b232ef6188c4318cb7b2c2d80521c9a56c52449f8f93ab7bc2a8a1c"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-win32.whl", hash = "sha256:d2f9b69293c33aaa53d923032fe227feac867f81682f002ce33ffae978f0a9a9"},
+ {file = "aiohttp-3.8.1-cp37-cp37m-win_amd64.whl", hash = "sha256:6ae828d3a003f03ae31915c31fa684b9890ea44c9c989056fea96e3d12a9fa17"},
+ {file = "aiohttp-3.8.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:0c7ebbbde809ff4e970824b2b6cb7e4222be6b95a296e46c03cf050878fc1785"},
+ {file = "aiohttp-3.8.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8b7ef7cbd4fec9a1e811a5de813311ed4f7ac7d93e0fda233c9b3e1428f7dd7b"},
+ {file = "aiohttp-3.8.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:c3d6a4d0619e09dcd61021debf7059955c2004fa29f48788a3dfaf9c9901a7cd"},
+ {file = "aiohttp-3.8.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:718626a174e7e467f0558954f94af117b7d4695d48eb980146016afa4b580b2e"},
+ {file = "aiohttp-3.8.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:589c72667a5febd36f1315aa6e5f56dd4aa4862df295cb51c769d16142ddd7cd"},
+ {file = "aiohttp-3.8.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2ed076098b171573161eb146afcb9129b5ff63308960aeca4b676d9d3c35e700"},
+ {file = "aiohttp-3.8.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:086f92daf51a032d062ec5f58af5ca6a44d082c35299c96376a41cbb33034675"},
+ {file = "aiohttp-3.8.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:11691cf4dc5b94236ccc609b70fec991234e7ef8d4c02dd0c9668d1e486f5abf"},
+ {file = "aiohttp-3.8.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:31d1e1c0dbf19ebccbfd62eff461518dcb1e307b195e93bba60c965a4dcf1ba0"},
+ {file = "aiohttp-3.8.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:11a67c0d562e07067c4e86bffc1553f2cf5b664d6111c894671b2b8712f3aba5"},
+ {file = "aiohttp-3.8.1-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:bb01ba6b0d3f6c68b89fce7305080145d4877ad3acaed424bae4d4ee75faa950"},
+ {file = "aiohttp-3.8.1-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:44db35a9e15d6fe5c40d74952e803b1d96e964f683b5a78c3cc64eb177878155"},
+ {file = "aiohttp-3.8.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:844a9b460871ee0a0b0b68a64890dae9c415e513db0f4a7e3cab41a0f2fedf33"},
+ {file = "aiohttp-3.8.1-cp38-cp38-win32.whl", hash = "sha256:7d08744e9bae2ca9c382581f7dce1273fe3c9bae94ff572c3626e8da5b193c6a"},
+ {file = "aiohttp-3.8.1-cp38-cp38-win_amd64.whl", hash = "sha256:04d48b8ce6ab3cf2097b1855e1505181bdd05586ca275f2505514a6e274e8e75"},
+ {file = "aiohttp-3.8.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:f5315a2eb0239185af1bddb1abf472d877fede3cc8d143c6cddad37678293237"},
+ {file = "aiohttp-3.8.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a996d01ca39b8dfe77440f3cd600825d05841088fd6bc0144cc6c2ec14cc5f74"},
+ {file = "aiohttp-3.8.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:13487abd2f761d4be7c8ff9080de2671e53fff69711d46de703c310c4c9317ca"},
+ {file = "aiohttp-3.8.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ea302f34477fda3f85560a06d9ebdc7fa41e82420e892fc50b577e35fc6a50b2"},
+ {file = "aiohttp-3.8.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a2f635ce61a89c5732537a7896b6319a8fcfa23ba09bec36e1b1ac0ab31270d2"},
+ {file = "aiohttp-3.8.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e999f2d0e12eea01caeecb17b653f3713d758f6dcc770417cf29ef08d3931421"},
+ {file = "aiohttp-3.8.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:0770e2806a30e744b4e21c9d73b7bee18a1cfa3c47991ee2e5a65b887c49d5cf"},
+ {file = "aiohttp-3.8.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:d15367ce87c8e9e09b0f989bfd72dc641bcd04ba091c68cd305312d00962addd"},
+ {file = "aiohttp-3.8.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:6c7cefb4b0640703eb1069835c02486669312bf2f12b48a748e0a7756d0de33d"},
+ {file = "aiohttp-3.8.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:71927042ed6365a09a98a6377501af5c9f0a4d38083652bcd2281a06a5976724"},
+ {file = "aiohttp-3.8.1-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:28d490af82bc6b7ce53ff31337a18a10498303fe66f701ab65ef27e143c3b0ef"},
+ {file = "aiohttp-3.8.1-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:b6613280ccedf24354406caf785db748bebbddcf31408b20c0b48cb86af76866"},
+ {file = "aiohttp-3.8.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:81e3d8c34c623ca4e36c46524a3530e99c0bc95ed068fd6e9b55cb721d408fb2"},
+ {file = "aiohttp-3.8.1-cp39-cp39-win32.whl", hash = "sha256:7187a76598bdb895af0adbd2fb7474d7f6025d170bc0a1130242da817ce9e7d1"},
+ {file = "aiohttp-3.8.1-cp39-cp39-win_amd64.whl", hash = "sha256:1c182cb873bc91b411e184dab7a2b664d4fea2743df0e4d57402f7f3fa644bac"},
+ {file = "aiohttp-3.8.1.tar.gz", hash = "sha256:fc5471e1a54de15ef71c1bc6ebe80d4dc681ea600e68bfd1cbce40427f0b7578"},
+]
+aiosignal = [
+ {file = "aiosignal-1.2.0-py3-none-any.whl", hash = "sha256:26e62109036cd181df6e6ad646f91f0dcfd05fe16d0cb924138ff2ab75d64e3a"},
+ {file = "aiosignal-1.2.0.tar.gz", hash = "sha256:78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"},
+]
+amqp = [
+ {file = "amqp-5.1.1-py3-none-any.whl", hash = "sha256:6f0956d2c23d8fa6e7691934d8c3930eadb44972cbbd1a7ae3a520f735d43359"},
+ {file = "amqp-5.1.1.tar.gz", hash = "sha256:2c1b13fecc0893e946c65cbd5f36427861cffa4ea2201d8f6fca22e2a373b5e2"},
+]
+anyio = [
+ {file = "anyio-3.5.0-py3-none-any.whl", hash = "sha256:b5fa16c5ff93fa1046f2eeb5bbff2dad4d3514d6cda61d02816dba34fa8c3c2e"},
+ {file = "anyio-3.5.0.tar.gz", hash = "sha256:a0aeffe2fb1fdf374a8e4b471444f0f3ac4fb9f5a5b542b48824475e0042a5a6"},
+]
+asgiref = [
+ {file = "asgiref-3.5.0-py3-none-any.whl", hash = "sha256:88d59c13d634dcffe0510be048210188edd79aeccb6a6c9028cdad6f31d730a9"},
+ {file = "asgiref-3.5.0.tar.gz", hash = "sha256:2f8abc20f7248433085eda803936d98992f1343ddb022065779f37c5da0181d0"},
+]
+async-timeout = [
+ {file = "async-timeout-4.0.2.tar.gz", hash = "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"},
+ {file = "async_timeout-4.0.2-py3-none-any.whl", hash = "sha256:8ca1e4fcf50d07413d66d1a5e416e42cfdf5851c981d679a09851a6853383b3c"},
+]
+attrs = [
+ {file = "attrs-21.4.0-py2.py3-none-any.whl", hash = "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4"},
+ {file = "attrs-21.4.0.tar.gz", hash = "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd"},
+]
+babel = [
+ {file = "Babel-2.10.1-py3-none-any.whl", hash = "sha256:3f349e85ad3154559ac4930c3918247d319f21910d5ce4b25d439ed8693b98d2"},
+ {file = "Babel-2.10.1.tar.gz", hash = "sha256:98aeaca086133efb3e1e2aad0396987490c8425929ddbcfe0550184fdc54cd13"},
+]
+bandit = [
+ {file = "bandit-1.7.4-py3-none-any.whl", hash = "sha256:412d3f259dab4077d0e7f0c11f50f650cc7d10db905d98f6520a95a18049658a"},
+ {file = "bandit-1.7.4.tar.gz", hash = "sha256:2d63a8c573417bae338962d4b9b06fbc6080f74ecd955a092849e1e65c717bd2"},
+]
+billiard = [
+ {file = "billiard-3.6.4.0-py3-none-any.whl", hash = "sha256:87103ea78fa6ab4d5c751c4909bcff74617d985de7fa8b672cf8618afd5a875b"},
+ {file = "billiard-3.6.4.0.tar.gz", hash = "sha256:299de5a8da28a783d51b197d496bef4f1595dd023a93a4f59dde1886ae905547"},
+]
+black = [
+ {file = "black-22.3.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:2497f9c2386572e28921fa8bec7be3e51de6801f7459dffd6e62492531c47e09"},
+ {file = "black-22.3.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5795a0375eb87bfe902e80e0c8cfaedf8af4d49694d69161e5bd3206c18618bb"},
+ {file = "black-22.3.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e3556168e2e5c49629f7b0f377070240bd5511e45e25a4497bb0073d9dda776a"},
+ {file = "black-22.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:67c8301ec94e3bcc8906740fe071391bce40a862b7be0b86fb5382beefecd968"},
+ {file = "black-22.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:fd57160949179ec517d32ac2ac898b5f20d68ed1a9c977346efbac9c2f1e779d"},
+ {file = "black-22.3.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:cc1e1de68c8e5444e8f94c3670bb48a2beef0e91dddfd4fcc29595ebd90bb9ce"},
+ {file = "black-22.3.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d2fc92002d44746d3e7db7cf9313cf4452f43e9ea77a2c939defce3b10b5c82"},
+ {file = "black-22.3.0-cp36-cp36m-win_amd64.whl", hash = "sha256:a6342964b43a99dbc72f72812bf88cad8f0217ae9acb47c0d4f141a6416d2d7b"},
+ {file = "black-22.3.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:328efc0cc70ccb23429d6be184a15ce613f676bdfc85e5fe8ea2a9354b4e9015"},
+ {file = "black-22.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06f9d8846f2340dfac80ceb20200ea5d1b3f181dd0556b47af4e8e0b24fa0a6b"},
+ {file = "black-22.3.0-cp37-cp37m-win_amd64.whl", hash = "sha256:ad4efa5fad66b903b4a5f96d91461d90b9507a812b3c5de657d544215bb7877a"},
+ {file = "black-22.3.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:e8477ec6bbfe0312c128e74644ac8a02ca06bcdb8982d4ee06f209be28cdf163"},
+ {file = "black-22.3.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:637a4014c63fbf42a692d22b55d8ad6968a946b4a6ebc385c5505d9625b6a464"},
+ {file = "black-22.3.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:863714200ada56cbc366dc9ae5291ceb936573155f8bf8e9de92aef51f3ad0f0"},
+ {file = "black-22.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:10dbe6e6d2988049b4655b2b739f98785a884d4d6b85bc35133a8fb9a2233176"},
+ {file = "black-22.3.0-cp38-cp38-win_amd64.whl", hash = "sha256:cee3e11161dde1b2a33a904b850b0899e0424cc331b7295f2a9698e79f9a69a0"},
+ {file = "black-22.3.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:5891ef8abc06576985de8fa88e95ab70641de6c1fca97e2a15820a9b69e51b20"},
+ {file = "black-22.3.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:30d78ba6bf080eeaf0b7b875d924b15cd46fec5fd044ddfbad38c8ea9171043a"},
+ {file = "black-22.3.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ee8f1f7228cce7dffc2b464f07ce769f478968bfb3dd1254a4c2eeed84928aad"},
+ {file = "black-22.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ee227b696ca60dd1c507be80a6bc849a5a6ab57ac7352aad1ffec9e8b805f21"},
+ {file = "black-22.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:9b542ced1ec0ceeff5b37d69838106a6348e60db7b8fdd245294dc1d26136265"},
+ {file = "black-22.3.0-py3-none-any.whl", hash = "sha256:bc58025940a896d7e5356952228b68f793cf5fcb342be703c3a2669a1488cb72"},
+ {file = "black-22.3.0.tar.gz", hash = "sha256:35020b8886c022ced9282b51b5a875b6d1ab0c387b31a065b84db7c33085ca79"},
+]
+celery = [
+ {file = "celery-5.2.6-py3-none-any.whl", hash = "sha256:da31f8eae7607b1582e5ee2d3f2d6f58450585afd23379491e3d9229d08102d0"},
+ {file = "celery-5.2.6.tar.gz", hash = "sha256:d1398cadf30f576266b34370e28e880306ec55f7a4b6307549b0ae9c15663481"},
+]
+certifi = [
+ {file = "certifi-2021.10.8-py2.py3-none-any.whl", hash = "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569"},
+ {file = "certifi-2021.10.8.tar.gz", hash = "sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872"},
+]
+cffi = [
+ {file = "cffi-1.15.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:c2502a1a03b6312837279c8c1bd3ebedf6c12c4228ddbad40912d671ccc8a962"},
+ {file = "cffi-1.15.0-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:23cfe892bd5dd8941608f93348c0737e369e51c100d03718f108bf1add7bd6d0"},
+ {file = "cffi-1.15.0-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:41d45de54cd277a7878919867c0f08b0cf817605e4eb94093e7516505d3c8d14"},
+ {file = "cffi-1.15.0-cp27-cp27m-win32.whl", hash = "sha256:4a306fa632e8f0928956a41fa8e1d6243c71e7eb59ffbd165fc0b41e316b2474"},
+ {file = "cffi-1.15.0-cp27-cp27m-win_amd64.whl", hash = "sha256:e7022a66d9b55e93e1a845d8c9eba2a1bebd4966cd8bfc25d9cd07d515b33fa6"},
+ {file = "cffi-1.15.0-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:14cd121ea63ecdae71efa69c15c5543a4b5fbcd0bbe2aad864baca0063cecf27"},
+ {file = "cffi-1.15.0-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:d4d692a89c5cf08a8557fdeb329b82e7bf609aadfaed6c0d79f5a449a3c7c023"},
+ {file = "cffi-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0104fb5ae2391d46a4cb082abdd5c69ea4eab79d8d44eaaf79f1b1fd806ee4c2"},
+ {file = "cffi-1.15.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:91ec59c33514b7c7559a6acda53bbfe1b283949c34fe7440bcf917f96ac0723e"},
+ {file = "cffi-1.15.0-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:f5c7150ad32ba43a07c4479f40241756145a1f03b43480e058cfd862bf5041c7"},
+ {file = "cffi-1.15.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:00c878c90cb53ccfaae6b8bc18ad05d2036553e6d9d1d9dbcf323bbe83854ca3"},
+ {file = "cffi-1.15.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:abb9a20a72ac4e0fdb50dae135ba5e77880518e742077ced47eb1499e29a443c"},
+ {file = "cffi-1.15.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a5263e363c27b653a90078143adb3d076c1a748ec9ecc78ea2fb916f9b861962"},
+ {file = "cffi-1.15.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f54a64f8b0c8ff0b64d18aa76675262e1700f3995182267998c31ae974fbc382"},
+ {file = "cffi-1.15.0-cp310-cp310-win32.whl", hash = "sha256:c21c9e3896c23007803a875460fb786118f0cdd4434359577ea25eb556e34c55"},
+ {file = "cffi-1.15.0-cp310-cp310-win_amd64.whl", hash = "sha256:5e069f72d497312b24fcc02073d70cb989045d1c91cbd53979366077959933e0"},
+ {file = "cffi-1.15.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:64d4ec9f448dfe041705426000cc13e34e6e5bb13736e9fd62e34a0b0c41566e"},
+ {file = "cffi-1.15.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2756c88cbb94231c7a147402476be2c4df2f6078099a6f4a480d239a8817ae39"},
+ {file = "cffi-1.15.0-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3b96a311ac60a3f6be21d2572e46ce67f09abcf4d09344c49274eb9e0bf345fc"},
+ {file = "cffi-1.15.0-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:75e4024375654472cc27e91cbe9eaa08567f7fbdf822638be2814ce059f58032"},
+ {file = "cffi-1.15.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:59888172256cac5629e60e72e86598027aca6bf01fa2465bdb676d37636573e8"},
+ {file = "cffi-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:27c219baf94952ae9d50ec19651a687b826792055353d07648a5695413e0c605"},
+ {file = "cffi-1.15.0-cp36-cp36m-win32.whl", hash = "sha256:4958391dbd6249d7ad855b9ca88fae690783a6be9e86df65865058ed81fc860e"},
+ {file = "cffi-1.15.0-cp36-cp36m-win_amd64.whl", hash = "sha256:f6f824dc3bce0edab5f427efcfb1d63ee75b6fcb7282900ccaf925be84efb0fc"},
+ {file = "cffi-1.15.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:06c48159c1abed75c2e721b1715c379fa3200c7784271b3c46df01383b593636"},
+ {file = "cffi-1.15.0-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:c2051981a968d7de9dd2d7b87bcb9c939c74a34626a6e2f8181455dd49ed69e4"},
+ {file = "cffi-1.15.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:fd8a250edc26254fe5b33be00402e6d287f562b6a5b2152dec302fa15bb3e997"},
+ {file = "cffi-1.15.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91d77d2a782be4274da750752bb1650a97bfd8f291022b379bb8e01c66b4e96b"},
+ {file = "cffi-1.15.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:45db3a33139e9c8f7c09234b5784a5e33d31fd6907800b316decad50af323ff2"},
+ {file = "cffi-1.15.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:263cc3d821c4ab2213cbe8cd8b355a7f72a8324577dc865ef98487c1aeee2bc7"},
+ {file = "cffi-1.15.0-cp37-cp37m-win32.whl", hash = "sha256:17771976e82e9f94976180f76468546834d22a7cc404b17c22df2a2c81db0c66"},
+ {file = "cffi-1.15.0-cp37-cp37m-win_amd64.whl", hash = "sha256:3415c89f9204ee60cd09b235810be700e993e343a408693e80ce7f6a40108029"},
+ {file = "cffi-1.15.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:4238e6dab5d6a8ba812de994bbb0a79bddbdf80994e4ce802b6f6f3142fcc880"},
+ {file = "cffi-1.15.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:0808014eb713677ec1292301ea4c81ad277b6cdf2fdd90fd540af98c0b101d20"},
+ {file = "cffi-1.15.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:57e9ac9ccc3101fac9d6014fba037473e4358ef4e89f8e181f8951a2c0162024"},
+ {file = "cffi-1.15.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b6c2ea03845c9f501ed1313e78de148cd3f6cad741a75d43a29b43da27f2e1e"},
+ {file = "cffi-1.15.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:10dffb601ccfb65262a27233ac273d552ddc4d8ae1bf93b21c94b8511bffe728"},
+ {file = "cffi-1.15.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:786902fb9ba7433aae840e0ed609f45c7bcd4e225ebb9c753aa39725bb3e6ad6"},
+ {file = "cffi-1.15.0-cp38-cp38-win32.whl", hash = "sha256:da5db4e883f1ce37f55c667e5c0de439df76ac4cb55964655906306918e7363c"},
+ {file = "cffi-1.15.0-cp38-cp38-win_amd64.whl", hash = "sha256:181dee03b1170ff1969489acf1c26533710231c58f95534e3edac87fff06c443"},
+ {file = "cffi-1.15.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:45e8636704eacc432a206ac7345a5d3d2c62d95a507ec70d62f23cd91770482a"},
+ {file = "cffi-1.15.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:31fb708d9d7c3f49a60f04cf5b119aeefe5644daba1cd2a0fe389b674fd1de37"},
+ {file = "cffi-1.15.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:6dc2737a3674b3e344847c8686cf29e500584ccad76204efea14f451d4cc669a"},
+ {file = "cffi-1.15.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:74fdfdbfdc48d3f47148976f49fab3251e550a8720bebc99bf1483f5bfb5db3e"},
+ {file = "cffi-1.15.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffaa5c925128e29efbde7301d8ecaf35c8c60ffbcd6a1ffd3a552177c8e5e796"},
+ {file = "cffi-1.15.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3f7d084648d77af029acb79a0ff49a0ad7e9d09057a9bf46596dac9514dc07df"},
+ {file = "cffi-1.15.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ef1f279350da2c586a69d32fc8733092fd32cc8ac95139a00377841f59a3f8d8"},
+ {file = "cffi-1.15.0-cp39-cp39-win32.whl", hash = "sha256:2a23af14f408d53d5e6cd4e3d9a24ff9e05906ad574822a10563efcef137979a"},
+ {file = "cffi-1.15.0-cp39-cp39-win_amd64.whl", hash = "sha256:3773c4d81e6e818df2efbc7dd77325ca0dcb688116050fb2b3011218eda36139"},
+ {file = "cffi-1.15.0.tar.gz", hash = "sha256:920f0d66a896c2d99f0adbb391f990a84091179542c205fa53ce5787aff87954"},
+]
+charset-normalizer = [
+ {file = "charset-normalizer-2.0.12.tar.gz", hash = "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597"},
+ {file = "charset_normalizer-2.0.12-py3-none-any.whl", hash = "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df"},
+]
+choicelib = [
+ {file = "choicelib-0.1.5-py3-none-any.whl", hash = "sha256:6170daad66ef9ef7f72c75fbb527e8980720c63b84f8b7b379380095e6bec8ca"},
+ {file = "choicelib-0.1.5.tar.gz", hash = "sha256:450035a260e5621af793ea858be1f7b04e38bb50c7c40f9ef480da3c571314c7"},
+]
+click = [
+ {file = "click-8.1.2-py3-none-any.whl", hash = "sha256:24e1a4a9ec5bf6299411369b208c1df2188d9eb8d916302fe6bf03faed227f1e"},
+ {file = "click-8.1.2.tar.gz", hash = "sha256:479707fe14d9ec9a0757618b7a100a0ae4c4e236fac5b7f80ca68028141a1a72"},
+]
+click-didyoumean = [
+ {file = "click-didyoumean-0.3.0.tar.gz", hash = "sha256:f184f0d851d96b6d29297354ed981b7dd71df7ff500d82fa6d11f0856bee8035"},
+ {file = "click_didyoumean-0.3.0-py3-none-any.whl", hash = "sha256:a0713dc7a1de3f06bc0df5a9567ad19ead2d3d5689b434768a6145bff77c0667"},
+]
+click-plugins = [
+ {file = "click-plugins-1.1.1.tar.gz", hash = "sha256:46ab999744a9d831159c3411bb0c79346d94a444df9a3a3742e9ed63645f264b"},
+ {file = "click_plugins-1.1.1-py2.py3-none-any.whl", hash = "sha256:5d262006d3222f5057fd81e1623d4443e41dcda5dc815c06b442aa3c02889fc8"},
+]
+click-repl = [
+ {file = "click-repl-0.2.0.tar.gz", hash = "sha256:cd12f68d745bf6151210790540b4cb064c7b13e571bc64b6957d98d120dacfd8"},
+ {file = "click_repl-0.2.0-py3-none-any.whl", hash = "sha256:94b3fbbc9406a236f176e0506524b2937e4b23b6f4c0c0b2a0a83f8a64e9194b"},
+]
+colorama = [
+ {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"},
+ {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"},
+]
+coverage = [
+ {file = "coverage-5.5-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:b6d534e4b2ab35c9f93f46229363e17f63c53ad01330df9f2d6bd1187e5eaacf"},
+ {file = "coverage-5.5-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:b7895207b4c843c76a25ab8c1e866261bcfe27bfaa20c192de5190121770672b"},
+ {file = "coverage-5.5-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:c2723d347ab06e7ddad1a58b2a821218239249a9e4365eaff6649d31180c1669"},
+ {file = "coverage-5.5-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:900fbf7759501bc7807fd6638c947d7a831fc9fdf742dc10f02956ff7220fa90"},
+ {file = "coverage-5.5-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:004d1880bed2d97151facef49f08e255a20ceb6f9432df75f4eef018fdd5a78c"},
+ {file = "coverage-5.5-cp27-cp27m-win32.whl", hash = "sha256:06191eb60f8d8a5bc046f3799f8a07a2d7aefb9504b0209aff0b47298333302a"},
+ {file = "coverage-5.5-cp27-cp27m-win_amd64.whl", hash = "sha256:7501140f755b725495941b43347ba8a2777407fc7f250d4f5a7d2a1050ba8e82"},
+ {file = "coverage-5.5-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:372da284cfd642d8e08ef606917846fa2ee350f64994bebfbd3afb0040436905"},
+ {file = "coverage-5.5-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:8963a499849a1fc54b35b1c9f162f4108017b2e6db2c46c1bed93a72262ed083"},
+ {file = "coverage-5.5-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:869a64f53488f40fa5b5b9dcb9e9b2962a66a87dab37790f3fcfb5144b996ef5"},
+ {file = "coverage-5.5-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:4a7697d8cb0f27399b0e393c0b90f0f1e40c82023ea4d45d22bce7032a5d7b81"},
+ {file = "coverage-5.5-cp310-cp310-macosx_10_14_x86_64.whl", hash = "sha256:8d0a0725ad7c1a0bcd8d1b437e191107d457e2ec1084b9f190630a4fb1af78e6"},
+ {file = "coverage-5.5-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:51cb9476a3987c8967ebab3f0fe144819781fca264f57f89760037a2ea191cb0"},
+ {file = "coverage-5.5-cp310-cp310-win_amd64.whl", hash = "sha256:c0891a6a97b09c1f3e073a890514d5012eb256845c451bd48f7968ef939bf4ae"},
+ {file = "coverage-5.5-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:3487286bc29a5aa4b93a072e9592f22254291ce96a9fbc5251f566b6b7343cdb"},
+ {file = "coverage-5.5-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:deee1077aae10d8fa88cb02c845cfba9b62c55e1183f52f6ae6a2df6a2187160"},
+ {file = "coverage-5.5-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f11642dddbb0253cc8853254301b51390ba0081750a8ac03f20ea8103f0c56b6"},
+ {file = "coverage-5.5-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:6c90e11318f0d3c436a42409f2749ee1a115cd8b067d7f14c148f1ce5574d701"},
+ {file = "coverage-5.5-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:30c77c1dc9f253283e34c27935fded5015f7d1abe83bc7821680ac444eaf7793"},
+ {file = "coverage-5.5-cp35-cp35m-win32.whl", hash = "sha256:9a1ef3b66e38ef8618ce5fdc7bea3d9f45f3624e2a66295eea5e57966c85909e"},
+ {file = "coverage-5.5-cp35-cp35m-win_amd64.whl", hash = "sha256:972c85d205b51e30e59525694670de6a8a89691186012535f9d7dbaa230e42c3"},
+ {file = "coverage-5.5-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:af0e781009aaf59e25c5a678122391cb0f345ac0ec272c7961dc5455e1c40066"},
+ {file = "coverage-5.5-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:74d881fc777ebb11c63736622b60cb9e4aee5cace591ce274fb69e582a12a61a"},
+ {file = "coverage-5.5-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:92b017ce34b68a7d67bd6d117e6d443a9bf63a2ecf8567bb3d8c6c7bc5014465"},
+ {file = "coverage-5.5-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:d636598c8305e1f90b439dbf4f66437de4a5e3c31fdf47ad29542478c8508bbb"},
+ {file = "coverage-5.5-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:41179b8a845742d1eb60449bdb2992196e211341818565abded11cfa90efb821"},
+ {file = "coverage-5.5-cp36-cp36m-win32.whl", hash = "sha256:040af6c32813fa3eae5305d53f18875bedd079960822ef8ec067a66dd8afcd45"},
+ {file = "coverage-5.5-cp36-cp36m-win_amd64.whl", hash = "sha256:5fec2d43a2cc6965edc0bb9e83e1e4b557f76f843a77a2496cbe719583ce8184"},
+ {file = "coverage-5.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:18ba8bbede96a2c3dde7b868de9dcbd55670690af0988713f0603f037848418a"},
+ {file = "coverage-5.5-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:2910f4d36a6a9b4214bb7038d537f015346f413a975d57ca6b43bf23d6563b53"},
+ {file = "coverage-5.5-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:f0b278ce10936db1a37e6954e15a3730bea96a0997c26d7fee88e6c396c2086d"},
+ {file = "coverage-5.5-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:796c9c3c79747146ebd278dbe1e5c5c05dd6b10cc3bcb8389dfdf844f3ead638"},
+ {file = "coverage-5.5-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:53194af30d5bad77fcba80e23a1441c71abfb3e01192034f8246e0d8f99528f3"},
+ {file = "coverage-5.5-cp37-cp37m-win32.whl", hash = "sha256:184a47bbe0aa6400ed2d41d8e9ed868b8205046518c52464fde713ea06e3a74a"},
+ {file = "coverage-5.5-cp37-cp37m-win_amd64.whl", hash = "sha256:2949cad1c5208b8298d5686d5a85b66aae46d73eec2c3e08c817dd3513e5848a"},
+ {file = "coverage-5.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:217658ec7187497e3f3ebd901afdca1af062b42cfe3e0dafea4cced3983739f6"},
+ {file = "coverage-5.5-cp38-cp38-manylinux1_i686.whl", hash = "sha256:1aa846f56c3d49205c952d8318e76ccc2ae23303351d9270ab220004c580cfe2"},
+ {file = "coverage-5.5-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:24d4a7de75446be83244eabbff746d66b9240ae020ced65d060815fac3423759"},
+ {file = "coverage-5.5-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:d1f8bf7b90ba55699b3a5e44930e93ff0189aa27186e96071fac7dd0d06a1873"},
+ {file = "coverage-5.5-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:970284a88b99673ccb2e4e334cfb38a10aab7cd44f7457564d11898a74b62d0a"},
+ {file = "coverage-5.5-cp38-cp38-win32.whl", hash = "sha256:01d84219b5cdbfc8122223b39a954820929497a1cb1422824bb86b07b74594b6"},
+ {file = "coverage-5.5-cp38-cp38-win_amd64.whl", hash = "sha256:2e0d881ad471768bf6e6c2bf905d183543f10098e3b3640fc029509530091502"},
+ {file = "coverage-5.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d1f9ce122f83b2305592c11d64f181b87153fc2c2bbd3bb4a3dde8303cfb1a6b"},
+ {file = "coverage-5.5-cp39-cp39-manylinux1_i686.whl", hash = "sha256:13c4ee887eca0f4c5a247b75398d4114c37882658300e153113dafb1d76de529"},
+ {file = "coverage-5.5-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:52596d3d0e8bdf3af43db3e9ba8dcdaac724ba7b5ca3f6358529d56f7a166f8b"},
+ {file = "coverage-5.5-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:2cafbbb3af0733db200c9b5f798d18953b1a304d3f86a938367de1567f4b5bff"},
+ {file = "coverage-5.5-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:44d654437b8ddd9eee7d1eaee28b7219bec228520ff809af170488fd2fed3e2b"},
+ {file = "coverage-5.5-cp39-cp39-win32.whl", hash = "sha256:d314ed732c25d29775e84a960c3c60808b682c08d86602ec2c3008e1202e3bb6"},
+ {file = "coverage-5.5-cp39-cp39-win_amd64.whl", hash = "sha256:13034c4409db851670bc9acd836243aeee299949bd5673e11844befcb0149f03"},
+ {file = "coverage-5.5-pp36-none-any.whl", hash = "sha256:f030f8873312a16414c0d8e1a1ddff2d3235655a2174e3648b4fa66b3f2f1079"},
+ {file = "coverage-5.5-pp37-none-any.whl", hash = "sha256:2a3859cb82dcbda1cfd3e6f71c27081d18aa251d20a17d87d26d4cd216fb0af4"},
+ {file = "coverage-5.5.tar.gz", hash = "sha256:ebe78fe9a0e874362175b02371bdfbee64d8edc42a044253ddf4ee7d3c15212c"},
+]
+cryptg = [
+ {file = "cryptg-0.2.post4-cp36-cp36m-macosx_10_6_intel.whl", hash = "sha256:b6352555e47f389ed502269bdb537233d0a928b12d9f4caa57e8c707151acd30"},
+ {file = "cryptg-0.2.post4-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:7fc8e1893775c6f53dceda1959f19833cc27a67a80492c10e2415dc601b36650"},
+ {file = "cryptg-0.2.post4-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:2516557e89803637fa7342de43dbcc5f84bf68ae05b1064a354a62d423447d9f"},
+ {file = "cryptg-0.2.post4-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:c09a5b14494532fc3226f5c5f57ef2a651c935ed6a1d2d0f9eff110046725524"},
+ {file = "cryptg-0.2.post4-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:eff15f0a1eee678dd9ec747b58ce86edb78b608036ac4e02d8349f5f35202495"},
+ {file = "cryptg-0.2.post4-cp36-cp36m-win32.whl", hash = "sha256:72a5485ece10a70160170ceb658b1836db82dccab08a1f7029c54d81cf6b1d43"},
+ {file = "cryptg-0.2.post4-cp36-cp36m-win_amd64.whl", hash = "sha256:29001dafd3d6a054365222b1f89b12876723c89cdd10aa0e5885a05dfd034eeb"},
+ {file = "cryptg-0.2.post4-cp37-cp37m-macosx_10_6_intel.whl", hash = "sha256:307bf96a6ac9c87b44531d8da5fe3a6c5d856e1dc69b68136ef9c4fb66ad17ac"},
+ {file = "cryptg-0.2.post4-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:47ad5916be4558f4d674c12800e8d9663ce938b0046f19cdc869ba3a7ca280ec"},
+ {file = "cryptg-0.2.post4-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:6c5d66975fc59adca203fa91e2a104240457114468162d30e9213661239ac1d6"},
+ {file = "cryptg-0.2.post4-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:bf00943924cddb0838f8a65f5aae31f6fe2ad64a5d7e6f10a6b900b3f01b0ae0"},
+ {file = "cryptg-0.2.post4-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:135688c6fbda90748924c2cb047f63785ebf4397d81acc4a05357950653c5096"},
+ {file = "cryptg-0.2.post4-cp37-cp37m-win32.whl", hash = "sha256:46960979542155c9d903656a3a39770061b09a3691a23296f06dc168fe4ff962"},
+ {file = "cryptg-0.2.post4-cp37-cp37m-win_amd64.whl", hash = "sha256:ce08c04ebb06ce1ac417597c1bb514a3c1b36cf5c286b8c60f23df2e65703bf3"},
+ {file = "cryptg-0.2.post4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:695636cca0ee938bd7113658ee60bfaf89afa19708c40ecae5f4a222c2ec544a"},
+ {file = "cryptg-0.2.post4-cp38-cp38-manylinux1_i686.whl", hash = "sha256:1fb6c6d4561a54406593197c1f5f23662ab320f4af4ab11834e1583e9d27a49a"},
+ {file = "cryptg-0.2.post4-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:bbd05b52d09e78bdc595f229c0481f4f2e1daf3959847322a6b2c1f76119305f"},
+ {file = "cryptg-0.2.post4-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:c4812802ce4cd6f08189ce0fa8b79e9a96ac941e69e6b3032bb6908baefde2ba"},
+ {file = "cryptg-0.2.post4-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:c69c1e19884108e508697919de0cd43e2ca4e9af418962aa235273b3c51a0e37"},
+ {file = "cryptg-0.2.post4-cp38-cp38-win32.whl", hash = "sha256:e29b0d944176cf88fe52d1c58f46017b5bddc9cc54ec0fc6fac20043febefc32"},
+ {file = "cryptg-0.2.post4-cp38-cp38-win_amd64.whl", hash = "sha256:5faed49d972c7f44ce4d6fa1a64169c85a11209fa1fbe1c8a333fb1454888725"},
+ {file = "cryptg-0.2.post4-cp39-cp39-manylinux1_i686.whl", hash = "sha256:b8896394b72ff7dbf38072ad4c2cd59abdd9e388bb55e1c369102beb8e569f9d"},
+ {file = "cryptg-0.2.post4-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:e48ab84e0ed364436d5e449c59762c5963f08ad87f6508f4cb7644745b5559a8"},
+ {file = "cryptg-0.2.post4-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:0da1b367056e57a5c01d22608da0cd50e597b917c1b2d9631767aa3c0640a99a"},
+ {file = "cryptg-0.2.post4-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:31cf7682de69022c9a77739cdcf7116b06522b128b9b51c7593f277f38c38dbf"},
+ {file = "cryptg-0.2.post4-cp39-cp39-win32.whl", hash = "sha256:02b31622a75a49a5dcd25e589c85faae54575f018e055bd21a17df97c8bb9095"},
+ {file = "cryptg-0.2.post4-cp39-cp39-win_amd64.whl", hash = "sha256:3bc2f372dec3a7753c0c0d72c69fcbe44af5473f870a3406978e07e8560a1aa6"},
+ {file = "cryptg-0.2.post4-pp36-pypy36_pp73-manylinux1_x86_64.whl", hash = "sha256:a1fb178702730b59267f1e6c6dfe16c7bb9c1350cee4183221982ad2dba4e7f5"},
+ {file = "cryptg-0.2.post4-pp36-pypy36_pp73-manylinux2010_x86_64.whl", hash = "sha256:2cc8115960e49a038091ffb2d09de59e0acbdc76de10d7d415b7671a06bae0a9"},
+ {file = "cryptg-0.2.post4-pp36-pypy36_pp73-win32.whl", hash = "sha256:bf15aae0fa01aeec728ab16b920cf4c6b2793099c71f62f30ff100d6fe8c9859"},
+ {file = "cryptg-0.2.post4-pp37-pypy37_pp73-manylinux1_x86_64.whl", hash = "sha256:890584db41c8e1e046ae40dee0074614470d36ebd6b7e57bb91303300066601f"},
+ {file = "cryptg-0.2.post4-pp37-pypy37_pp73-manylinux2010_x86_64.whl", hash = "sha256:fdd62c2be23eeabb9ebd2ad41bf153f5ec48b968885ef14e676515407cd56339"},
+ {file = "cryptg-0.2.post4-pp37-pypy37_pp73-win32.whl", hash = "sha256:2cd8224eb64af756f45cdceab16d048494313db8acec1e38d75d97716082267b"},
+ {file = "cryptg-0.2.post4.tar.gz", hash = "sha256:a4de1730ca56aa8a945f176c25586901ed5e9f15ffb70c6459eedf466eb6299b"},
+]
+deprecation = [
+ {file = "deprecation-2.1.0-py2.py3-none-any.whl", hash = "sha256:a10811591210e1fb0e768a8c25517cabeabcba6f0bf96564f8ff45189f90b14a"},
+ {file = "deprecation-2.1.0.tar.gz", hash = "sha256:72b3bde64e5d778694b0cf68178aed03d15e15477116add3fb773e581f9518ff"},
+]
+eyed3 = [
+ {file = "eyeD3-0.9.6-py3-none-any.whl", hash = "sha256:97bd529384df1c3dbdd143d86bf1705729d97d862969a214696f9e32c32b5767"},
+ {file = "eyeD3-0.9.6.tar.gz", hash = "sha256:4b5064ec0fb3999294cca0020d4a27ffe4f29149e8292fdf7b2de9b9cabb7518"},
+]
+fastapi = [
+ {file = "fastapi-0.75.2-py3-none-any.whl", hash = "sha256:a70d31f4249b6b42dbe267667d22f83af645b2d857876c97f83ca9573215784f"},
+ {file = "fastapi-0.75.2.tar.gz", hash = "sha256:b5dac161ee19d33346040d3f44d8b7a9ac09b37df9efff95891f5e7641fa482f"},
+]
+ffmpeg-python = [
+ {file = "ffmpeg-python-0.2.0.tar.gz", hash = "sha256:65225db34627c578ef0e11c8b1eb528bb35e024752f6f10b78c011f6f64c4127"},
+ {file = "ffmpeg_python-0.2.0-py3-none-any.whl", hash = "sha256:ac441a0404e053f8b6a1113a77c0f452f1cfc62f6344a769475ffdc0f56c23c5"},
+]
+filetype = [
+ {file = "filetype-1.0.13-py2.py3-none-any.whl", hash = "sha256:8f5d2d5ae7fec00c71dadfe8a747c2d6da91d77f9b4e550bbdb0881f63a07e43"},
+ {file = "filetype-1.0.13.tar.gz", hash = "sha256:6a104762fe93d755c962aa96cb3d930a48f91a0761047126c5eead2153e33b03"},
+]
+flake8 = [
+ {file = "flake8-4.0.1-py2.py3-none-any.whl", hash = "sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d"},
+ {file = "flake8-4.0.1.tar.gz", hash = "sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d"},
+]
+flake8-bugbear = [
+ {file = "flake8-bugbear-22.4.25.tar.gz", hash = "sha256:f7c080563fca75ee6b205d06b181ecba22b802babb96b0b084cc7743d6908a55"},
+ {file = "flake8_bugbear-22.4.25-py3-none-any.whl", hash = "sha256:ec374101cddf65bd7a96d393847d74e58d3b98669dbf9768344c39b6290e8bd6"},
+]
+flake8-comprehensions = [
+ {file = "flake8-comprehensions-3.8.0.tar.gz", hash = "sha256:8e108707637b1d13734f38e03435984f6b7854fa6b5a4e34f93e69534be8e521"},
+ {file = "flake8_comprehensions-3.8.0-py3-none-any.whl", hash = "sha256:9406314803abe1193c064544ab14fdc43c58424c0882f6ff8a581eb73fc9bb58"},
+]
+flake8-tidy-imports = [
+ {file = "flake8-tidy-imports-4.6.0.tar.gz", hash = "sha256:3e193d8c4bb4492408a90e956d888b27eed14c698387c9b38230da3dad78058f"},
+ {file = "flake8_tidy_imports-4.6.0-py3-none-any.whl", hash = "sha256:6ae9f55d628156e19d19f4c359dd5d3e95431a9bd514f5e2748c53c1398c66b2"},
+]
+frozenlist = [
+ {file = "frozenlist-1.3.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d2257aaba9660f78c7b1d8fea963b68f3feffb1a9d5d05a18401ca9eb3e8d0a3"},
+ {file = "frozenlist-1.3.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:4a44ebbf601d7bac77976d429e9bdb5a4614f9f4027777f9e54fd765196e9d3b"},
+ {file = "frozenlist-1.3.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:45334234ec30fc4ea677f43171b18a27505bfb2dba9aca4398a62692c0ea8868"},
+ {file = "frozenlist-1.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:47be22dc27ed933d55ee55845d34a3e4e9f6fee93039e7f8ebadb0c2f60d403f"},
+ {file = "frozenlist-1.3.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:03a7dd1bfce30216a3f51a84e6dd0e4a573d23ca50f0346634916ff105ba6e6b"},
+ {file = "frozenlist-1.3.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:691ddf6dc50480ce49f68441f1d16a4c3325887453837036e0fb94736eae1e58"},
+ {file = "frozenlist-1.3.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bde99812f237f79eaf3f04ebffd74f6718bbd216101b35ac7955c2d47c17da02"},
+ {file = "frozenlist-1.3.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6a202458d1298ced3768f5a7d44301e7c86defac162ace0ab7434c2e961166e8"},
+ {file = "frozenlist-1.3.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:b9e3e9e365991f8cc5f5edc1fd65b58b41d0514a6a7ad95ef5c7f34eb49b3d3e"},
+ {file = "frozenlist-1.3.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:04cb491c4b1c051734d41ea2552fde292f5f3a9c911363f74f39c23659c4af78"},
+ {file = "frozenlist-1.3.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:436496321dad302b8b27ca955364a439ed1f0999311c393dccb243e451ff66aa"},
+ {file = "frozenlist-1.3.0-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:754728d65f1acc61e0f4df784456106e35afb7bf39cfe37227ab00436fb38676"},
+ {file = "frozenlist-1.3.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:6eb275c6385dd72594758cbe96c07cdb9bd6becf84235f4a594bdf21e3596c9d"},
+ {file = "frozenlist-1.3.0-cp310-cp310-win32.whl", hash = "sha256:e30b2f9683812eb30cf3f0a8e9f79f8d590a7999f731cf39f9105a7c4a39489d"},
+ {file = "frozenlist-1.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:f7353ba3367473d1d616ee727945f439e027f0bb16ac1a750219a8344d1d5d3c"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:88aafd445a233dbbf8a65a62bc3249a0acd0d81ab18f6feb461cc5a938610d24"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4406cfabef8f07b3b3af0f50f70938ec06d9f0fc26cbdeaab431cbc3ca3caeaa"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8cf829bd2e2956066dd4de43fd8ec881d87842a06708c035b37ef632930505a2"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:603b9091bd70fae7be28bdb8aa5c9990f4241aa33abb673390a7f7329296695f"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:25af28b560e0c76fa41f550eacb389905633e7ac02d6eb3c09017fa1c8cdfde1"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:94c7a8a9fc9383b52c410a2ec952521906d355d18fccc927fca52ab575ee8b93"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:65bc6e2fece04e2145ab6e3c47428d1bbc05aede61ae365b2c1bddd94906e478"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:3f7c935c7b58b0d78c0beea0c7358e165f95f1fd8a7e98baa40d22a05b4a8141"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:bd89acd1b8bb4f31b47072615d72e7f53a948d302b7c1d1455e42622de180eae"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:6983a31698490825171be44ffbafeaa930ddf590d3f051e397143a5045513b01"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:adac9700675cf99e3615eb6a0eb5e9f5a4143c7d42c05cea2e7f71c27a3d0846"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-win32.whl", hash = "sha256:0c36e78b9509e97042ef869c0e1e6ef6429e55817c12d78245eb915e1cca7468"},
+ {file = "frozenlist-1.3.0-cp37-cp37m-win_amd64.whl", hash = "sha256:57f4d3f03a18facacb2a6bcd21bccd011e3b75d463dc49f838fd699d074fabd1"},
+ {file = "frozenlist-1.3.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:8c905a5186d77111f02144fab5b849ab524f1e876a1e75205cd1386a9be4b00a"},
+ {file = "frozenlist-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b5009062d78a8c6890d50b4e53b0ddda31841b3935c1937e2ed8c1bda1c7fb9d"},
+ {file = "frozenlist-1.3.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:2fdc3cd845e5a1f71a0c3518528bfdbfe2efaf9886d6f49eacc5ee4fd9a10953"},
+ {file = "frozenlist-1.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:92e650bd09b5dda929523b9f8e7f99b24deac61240ecc1a32aeba487afcd970f"},
+ {file = "frozenlist-1.3.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:40dff8962b8eba91fd3848d857203f0bd704b5f1fa2b3fc9af64901a190bba08"},
+ {file = "frozenlist-1.3.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:768efd082074bb203c934e83a61654ed4931ef02412c2fbdecea0cff7ecd0274"},
+ {file = "frozenlist-1.3.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:006d3595e7d4108a12025ddf415ae0f6c9e736e726a5db0183326fd191b14c5e"},
+ {file = "frozenlist-1.3.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:871d42623ae15eb0b0e9df65baeee6976b2e161d0ba93155411d58ff27483ad8"},
+ {file = "frozenlist-1.3.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:aff388be97ef2677ae185e72dc500d19ecaf31b698986800d3fc4f399a5e30a5"},
+ {file = "frozenlist-1.3.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:9f892d6a94ec5c7b785e548e42722e6f3a52f5f32a8461e82ac3e67a3bd073f1"},
+ {file = "frozenlist-1.3.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:e982878792c971cbd60ee510c4ee5bf089a8246226dea1f2138aa0bb67aff148"},
+ {file = "frozenlist-1.3.0-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:c6c321dd013e8fc20735b92cb4892c115f5cdb82c817b1e5b07f6b95d952b2f0"},
+ {file = "frozenlist-1.3.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:30530930410855c451bea83f7b272fb1c495ed9d5cc72895ac29e91279401db3"},
+ {file = "frozenlist-1.3.0-cp38-cp38-win32.whl", hash = "sha256:40ec383bc194accba825fbb7d0ef3dda5736ceab2375462f1d8672d9f6b68d07"},
+ {file = "frozenlist-1.3.0-cp38-cp38-win_amd64.whl", hash = "sha256:f20baa05eaa2bcd5404c445ec51aed1c268d62600362dc6cfe04fae34a424bd9"},
+ {file = "frozenlist-1.3.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:0437fe763fb5d4adad1756050cbf855bbb2bf0d9385c7bb13d7a10b0dd550486"},
+ {file = "frozenlist-1.3.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b684c68077b84522b5c7eafc1dc735bfa5b341fb011d5552ebe0968e22ed641c"},
+ {file = "frozenlist-1.3.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:93641a51f89473837333b2f8100f3f89795295b858cd4c7d4a1f18e299dc0a4f"},
+ {file = "frozenlist-1.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d6d32ff213aef0fd0bcf803bffe15cfa2d4fde237d1d4838e62aec242a8362fa"},
+ {file = "frozenlist-1.3.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:31977f84828b5bb856ca1eb07bf7e3a34f33a5cddce981d880240ba06639b94d"},
+ {file = "frozenlist-1.3.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3c62964192a1c0c30b49f403495911298810bada64e4f03249ca35a33ca0417a"},
+ {file = "frozenlist-1.3.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4eda49bea3602812518765810af732229b4291d2695ed24a0a20e098c45a707b"},
+ {file = "frozenlist-1.3.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:acb267b09a509c1df5a4ca04140da96016f40d2ed183cdc356d237286c971b51"},
+ {file = "frozenlist-1.3.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:e1e26ac0a253a2907d654a37e390904426d5ae5483150ce3adedb35c8c06614a"},
+ {file = "frozenlist-1.3.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:f96293d6f982c58ebebb428c50163d010c2f05de0cde99fd681bfdc18d4b2dc2"},
+ {file = "frozenlist-1.3.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:e84cb61b0ac40a0c3e0e8b79c575161c5300d1d89e13c0e02f76193982f066ed"},
+ {file = "frozenlist-1.3.0-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:ff9310f05b9d9c5c4dd472983dc956901ee6cb2c3ec1ab116ecdde25f3ce4951"},
+ {file = "frozenlist-1.3.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:d26b650b71fdc88065b7a21f8ace70175bcf3b5bdba5ea22df4bfd893e795a3b"},
+ {file = "frozenlist-1.3.0-cp39-cp39-win32.whl", hash = "sha256:01a73627448b1f2145bddb6e6c2259988bb8aee0fb361776ff8604b99616cd08"},
+ {file = "frozenlist-1.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:772965f773757a6026dea111a15e6e2678fbd6216180f82a48a40b27de1ee2ab"},
+ {file = "frozenlist-1.3.0.tar.gz", hash = "sha256:ce6f2ba0edb7b0c1d8976565298ad2deba6f8064d2bebb6ffce2ca896eb35b0b"},
+]
+future = [
+ {file = "future-0.18.2.tar.gz", hash = "sha256:b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d"},
+]
+gitdb = [
+ {file = "gitdb-4.0.9-py3-none-any.whl", hash = "sha256:8033ad4e853066ba6ca92050b9df2f89301b8fc8bf7e9324d412a63f8bf1a8fd"},
+ {file = "gitdb-4.0.9.tar.gz", hash = "sha256:bac2fd45c0a1c9cf619e63a90d62bdc63892ef92387424b855792a6cabe789aa"},
+]
+gitpython = [
+ {file = "GitPython-3.1.27-py3-none-any.whl", hash = "sha256:5b68b000463593e05ff2b261acff0ff0972df8ab1b70d3cdbd41b546c8b8fc3d"},
+ {file = "GitPython-3.1.27.tar.gz", hash = "sha256:1c885ce809e8ba2d88a29befeb385fcea06338d3640712b59ca623c220bb5704"},
+]
+greenlet = [
+ {file = "greenlet-1.1.2-cp27-cp27m-macosx_10_14_x86_64.whl", hash = "sha256:58df5c2a0e293bf665a51f8a100d3e9956febfbf1d9aaf8c0677cf70218910c6"},
+ {file = "greenlet-1.1.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:aec52725173bd3a7b56fe91bc56eccb26fbdff1386ef123abb63c84c5b43b63a"},
+ {file = "greenlet-1.1.2-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:833e1551925ed51e6b44c800e71e77dacd7e49181fdc9ac9a0bf3714d515785d"},
+ {file = "greenlet-1.1.2-cp27-cp27m-win32.whl", hash = "sha256:aa5b467f15e78b82257319aebc78dd2915e4c1436c3c0d1ad6f53e47ba6e2713"},
+ {file = "greenlet-1.1.2-cp27-cp27m-win_amd64.whl", hash = "sha256:40b951f601af999a8bf2ce8c71e8aaa4e8c6f78ff8afae7b808aae2dc50d4c40"},
+ {file = "greenlet-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:95e69877983ea39b7303570fa6760f81a3eec23d0e3ab2021b7144b94d06202d"},
+ {file = "greenlet-1.1.2-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:356b3576ad078c89a6107caa9c50cc14e98e3a6c4874a37c3e0273e4baf33de8"},
+ {file = "greenlet-1.1.2-cp310-cp310-macosx_10_14_x86_64.whl", hash = "sha256:8639cadfda96737427330a094476d4c7a56ac03de7265622fcf4cfe57c8ae18d"},
+ {file = "greenlet-1.1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:97e5306482182170ade15c4b0d8386ded995a07d7cc2ca8f27958d34d6736497"},
+ {file = "greenlet-1.1.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e6a36bb9474218c7a5b27ae476035497a6990e21d04c279884eb10d9b290f1b1"},
+ {file = "greenlet-1.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:abb7a75ed8b968f3061327c433a0fbd17b729947b400747c334a9c29a9af6c58"},
+ {file = "greenlet-1.1.2-cp310-cp310-win_amd64.whl", hash = "sha256:14d4f3cd4e8b524ae9b8aa567858beed70c392fdec26dbdb0a8a418392e71708"},
+ {file = "greenlet-1.1.2-cp35-cp35m-macosx_10_14_x86_64.whl", hash = "sha256:17ff94e7a83aa8671a25bf5b59326ec26da379ace2ebc4411d690d80a7fbcf23"},
+ {file = "greenlet-1.1.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:9f3cba480d3deb69f6ee2c1825060177a22c7826431458c697df88e6aeb3caee"},
+ {file = "greenlet-1.1.2-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:fa877ca7f6b48054f847b61d6fa7bed5cebb663ebc55e018fda12db09dcc664c"},
+ {file = "greenlet-1.1.2-cp35-cp35m-win32.whl", hash = "sha256:7cbd7574ce8e138bda9df4efc6bf2ab8572c9aff640d8ecfece1b006b68da963"},
+ {file = "greenlet-1.1.2-cp35-cp35m-win_amd64.whl", hash = "sha256:903bbd302a2378f984aef528f76d4c9b1748f318fe1294961c072bdc7f2ffa3e"},
+ {file = "greenlet-1.1.2-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:049fe7579230e44daef03a259faa24511d10ebfa44f69411d99e6a184fe68073"},
+ {file = "greenlet-1.1.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:dd0b1e9e891f69e7675ba5c92e28b90eaa045f6ab134ffe70b52e948aa175b3c"},
+ {file = "greenlet-1.1.2-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:7418b6bfc7fe3331541b84bb2141c9baf1ec7132a7ecd9f375912eca810e714e"},
+ {file = "greenlet-1.1.2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f9d29ca8a77117315101425ec7ec2a47a22ccf59f5593378fc4077ac5b754fce"},
+ {file = "greenlet-1.1.2-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:21915eb821a6b3d9d8eefdaf57d6c345b970ad722f856cd71739493ce003ad08"},
+ {file = "greenlet-1.1.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eff9d20417ff9dcb0d25e2defc2574d10b491bf2e693b4e491914738b7908168"},
+ {file = "greenlet-1.1.2-cp36-cp36m-win32.whl", hash = "sha256:32ca72bbc673adbcfecb935bb3fb1b74e663d10a4b241aaa2f5a75fe1d1f90aa"},
+ {file = "greenlet-1.1.2-cp36-cp36m-win_amd64.whl", hash = "sha256:f0214eb2a23b85528310dad848ad2ac58e735612929c8072f6093f3585fd342d"},
+ {file = "greenlet-1.1.2-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:b92e29e58bef6d9cfd340c72b04d74c4b4e9f70c9fa7c78b674d1fec18896dc4"},
+ {file = "greenlet-1.1.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:fdcec0b8399108577ec290f55551d926d9a1fa6cad45882093a7a07ac5ec147b"},
+ {file = "greenlet-1.1.2-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:93f81b134a165cc17123626ab8da2e30c0455441d4ab5576eed73a64c025b25c"},
+ {file = "greenlet-1.1.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1e12bdc622676ce47ae9abbf455c189e442afdde8818d9da983085df6312e7a1"},
+ {file = "greenlet-1.1.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8c790abda465726cfb8bb08bd4ca9a5d0a7bd77c7ac1ca1b839ad823b948ea28"},
+ {file = "greenlet-1.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f276df9830dba7a333544bd41070e8175762a7ac20350786b322b714b0e654f5"},
+ {file = "greenlet-1.1.2-cp37-cp37m-win32.whl", hash = "sha256:64e6175c2e53195278d7388c454e0b30997573f3f4bd63697f88d855f7a6a1fc"},
+ {file = "greenlet-1.1.2-cp37-cp37m-win_amd64.whl", hash = "sha256:b11548073a2213d950c3f671aa88e6f83cda6e2fb97a8b6317b1b5b33d850e06"},
+ {file = "greenlet-1.1.2-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:9633b3034d3d901f0a46b7939f8c4d64427dfba6bbc5a36b1a67364cf148a1b0"},
+ {file = "greenlet-1.1.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:eb6ea6da4c787111adf40f697b4e58732ee0942b5d3bd8f435277643329ba627"},
+ {file = "greenlet-1.1.2-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:f3acda1924472472ddd60c29e5b9db0cec629fbe3c5c5accb74d6d6d14773478"},
+ {file = "greenlet-1.1.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e859fcb4cbe93504ea18008d1df98dee4f7766db66c435e4882ab35cf70cac43"},
+ {file = "greenlet-1.1.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:00e44c8afdbe5467e4f7b5851be223be68adb4272f44696ee71fe46b7036a711"},
+ {file = "greenlet-1.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec8c433b3ab0419100bd45b47c9c8551248a5aee30ca5e9d399a0b57ac04651b"},
+ {file = "greenlet-1.1.2-cp38-cp38-win32.whl", hash = "sha256:288c6a76705dc54fba69fbcb59904ae4ad768b4c768839b8ca5fdadec6dd8cfd"},
+ {file = "greenlet-1.1.2-cp38-cp38-win_amd64.whl", hash = "sha256:8d2f1fb53a421b410751887eb4ff21386d119ef9cde3797bf5e7ed49fb51a3b3"},
+ {file = "greenlet-1.1.2-cp39-cp39-macosx_10_14_x86_64.whl", hash = "sha256:166eac03e48784a6a6e0e5f041cfebb1ab400b394db188c48b3a84737f505b67"},
+ {file = "greenlet-1.1.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:572e1787d1460da79590bf44304abbc0a2da944ea64ec549188fa84d89bba7ab"},
+ {file = "greenlet-1.1.2-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:be5f425ff1f5f4b3c1e33ad64ab994eed12fc284a6ea71c5243fd564502ecbe5"},
+ {file = "greenlet-1.1.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b1692f7d6bc45e3200844be0dba153612103db241691088626a33ff1f24a0d88"},
+ {file = "greenlet-1.1.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7227b47e73dedaa513cdebb98469705ef0d66eb5a1250144468e9c3097d6b59b"},
+ {file = "greenlet-1.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7ff61ff178250f9bb3cd89752df0f1dd0e27316a8bd1465351652b1b4a4cdfd3"},
+ {file = "greenlet-1.1.2-cp39-cp39-win32.whl", hash = "sha256:f70a9e237bb792c7cc7e44c531fd48f5897961701cdaa06cf22fc14965c496cf"},
+ {file = "greenlet-1.1.2-cp39-cp39-win_amd64.whl", hash = "sha256:013d61294b6cd8fe3242932c1c5e36e5d1db2c8afb58606c5a67efce62c1f5fd"},
+ {file = "greenlet-1.1.2.tar.gz", hash = "sha256:e30f5ea4ae2346e62cedde8794a56858a67b878dd79f7df76a0767e356b1744a"},
+]
+gunicorn = [
+ {file = "gunicorn-20.1.0-py3-none-any.whl", hash = "sha256:9dcc4547dbb1cb284accfb15ab5667a0e5d1881cc443e0677b4882a4067a807e"},
+ {file = "gunicorn-20.1.0.tar.gz", hash = "sha256:e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8"},
+]
+h11 = [
+ {file = "h11-0.13.0-py3-none-any.whl", hash = "sha256:8ddd78563b633ca55346c8cd41ec0af27d3c79931828beffb46ce70a379e7442"},
+ {file = "h11-0.13.0.tar.gz", hash = "sha256:70813c1135087a248a4d38cc0e1a0181ffab2188141a93eaf567940c3957ff06"},
+]
+hachoir = [
+ {file = "hachoir-3.1.3-py3-none-any.whl", hash = "sha256:2aea6a5638c52045705d8fedfd140e851653f8a47e81acb3343dba103f86eaa5"},
+ {file = "hachoir-3.1.3.tar.gz", hash = "sha256:e0ad621226bf0819acf673a73793f520f21a382f275d2f7282a5758b1f66dc52"},
+]
+httptools = [
+ {file = "httptools-0.4.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:fcddfe70553be717d9745990dfdb194e22ee0f60eb8f48c0794e7bfeda30d2d5"},
+ {file = "httptools-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1ee0b459257e222b878a6c09ccf233957d3a4dcb883b0847640af98d2d9aac23"},
+ {file = "httptools-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ceafd5e960b39c7e0d160a1936b68eb87c5e79b3979d66e774f0c77d4d8faaed"},
+ {file = "httptools-0.4.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:fdb9f9ed79bc6f46b021b3319184699ba1a22410a82204e6e89c774530069683"},
+ {file = "httptools-0.4.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:abe829275cdd4174b4c4e65ad718715d449e308d59793bf3a931ee1bf7e7b86c"},
+ {file = "httptools-0.4.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:7af6bdbd21a2a25d6784f6d67f44f5df33ef39b6159543b9f9064d365c01f919"},
+ {file = "httptools-0.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:5d1fe6b6661022fd6cac541f54a4237496b246e6f1c0a6b41998ee08a1135afe"},
+ {file = "httptools-0.4.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:48e48530d9b995a84d1d89ae6b3ec4e59ea7d494b150ac3bbc5e2ac4acce92cd"},
+ {file = "httptools-0.4.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a113789e53ac1fa26edf99856a61e4c493868e125ae0dd6354cf518948fbbd5c"},
+ {file = "httptools-0.4.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8e2eb957787cbb614a0f006bfc5798ff1d90ac7c4dd24854c84edbdc8c02369e"},
+ {file = "httptools-0.4.0-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:7ee9f226acab9085037582c059d66769862706e8e8cd2340470ceb8b3850873d"},
+ {file = "httptools-0.4.0-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:701e66b59dd21a32a274771238025d58db7e2b6ecebbab64ceff51b8e31527ae"},
+ {file = "httptools-0.4.0-cp36-cp36m-win_amd64.whl", hash = "sha256:6a1a7dfc1f9c78a833e2c4904757a0f47ce25d08634dd2a52af394eefe5f9777"},
+ {file = "httptools-0.4.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:903f739c9fb78dab8970b0f3ea51f21955b24b45afa77b22ff0e172fc11ef111"},
+ {file = "httptools-0.4.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:54bbd295f031b866b9799dd39cb45deee81aca036c9bff9f58ca06726f6494f1"},
+ {file = "httptools-0.4.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:3194f6d6443befa8d4db16c1946b2fc428a3ceb8ab32eb6f09a59f86104dc1a0"},
+ {file = "httptools-0.4.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:cd1295f52971097f757edfbfce827b6dbbfb0f7a74901ee7d4933dff5ad4c9af"},
+ {file = "httptools-0.4.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:20a45bcf22452a10fa8d58b7dbdb474381f6946bf5b8933e3662d572bc61bae4"},
+ {file = "httptools-0.4.0-cp37-cp37m-win_amd64.whl", hash = "sha256:d1f27bb0f75bef722d6e22dc609612bfa2f994541621cd2163f8c943b6463dfe"},
+ {file = "httptools-0.4.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:7f7bfb74718f52d5ed47d608d507bf66d3bc01d4a8b3e6dd7134daaae129357b"},
+ {file = "httptools-0.4.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:a522d12e2ddbc2e91842ffb454a1aeb0d47607972c7d8fc88bd0838d97fb8a2a"},
+ {file = "httptools-0.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2db44a0b294d317199e9f80123e72c6b005c55b625b57fae36de68670090fa48"},
+ {file = "httptools-0.4.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:c286985b5e194ca0ebb2908d71464b9be8f17cc66d6d3e330e8d5407248f56ad"},
+ {file = "httptools-0.4.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:d3a4e165ca6204f34856b765d515d558dc84f1352033b8721e8d06c3e44930c3"},
+ {file = "httptools-0.4.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:72aa3fbe636b16d22e04b5a9d24711b043495e0ecfe58080addf23a1a37f3409"},
+ {file = "httptools-0.4.0-cp38-cp38-win_amd64.whl", hash = "sha256:9967d9758df505975913304c434cb9ab21e2c609ad859eb921f2f615a038c8de"},
+ {file = "httptools-0.4.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:f72b5d24d6730035128b238decdc4c0f2104b7056a7ca55cf047c106842ec890"},
+ {file = "httptools-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:29bf97a5c532da9c7a04de2c7a9c31d1d54f3abd65a464119b680206bbbb1055"},
+ {file = "httptools-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:98993805f1e3cdb53de4eed02b55dcc953cdf017ba7bbb2fd89226c086a6d855"},
+ {file = "httptools-0.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:d9b90bf58f3ba04e60321a23a8723a1ff2a9377502535e70495e5ada8e6e6722"},
+ {file = "httptools-0.4.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:1a99346ebcb801b213c591540837340bdf6fd060a8687518d01c607d338b7424"},
+ {file = "httptools-0.4.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:645373c070080e632480a3d251d892cb795be3d3a15f86975d0f1aca56fd230d"},
+ {file = "httptools-0.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:34d2903dd2a3dd85d33705b6fde40bf91fc44411661283763fd0746723963c83"},
+ {file = "httptools-0.4.0.tar.gz", hash = "sha256:2c9a930c378b3d15d6b695fb95ebcff81a7395b4f9775c4f10a076beb0b2c1ff"},
+]
+idna = [
+ {file = "idna-3.3-py3-none-any.whl", hash = "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff"},
+ {file = "idna-3.3.tar.gz", hash = "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"},
+]
+isort = [
+ {file = "isort-5.10.1-py3-none-any.whl", hash = "sha256:6f62d78e2f89b4500b080fe3a81690850cd254227f27f75c3a0c491a1f351ba7"},
+ {file = "isort-5.10.1.tar.gz", hash = "sha256:e8443a5e7a020e9d7f97f1d7d9cd17c88bcb3bc7e218bf9cf5095fe550be2951"},
+]
+kombu = [
+ {file = "kombu-5.2.4-py3-none-any.whl", hash = "sha256:8b213b24293d3417bcf0d2f5537b7f756079e3ea232a8386dcc89a59fd2361a4"},
+ {file = "kombu-5.2.4.tar.gz", hash = "sha256:37cee3ee725f94ea8bb173eaab7c1760203ea53bbebae226328600f9d2799610"},
+]
+mccabe = [
+ {file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"},
+ {file = "mccabe-0.6.1.tar.gz", hash = "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"},
+]
+multidict = [
+ {file = "multidict-6.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0b9e95a740109c6047602f4db4da9949e6c5945cefbad34a1299775ddc9a62e2"},
+ {file = "multidict-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ac0e27844758d7177989ce406acc6a83c16ed4524ebc363c1f748cba184d89d3"},
+ {file = "multidict-6.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:041b81a5f6b38244b34dc18c7b6aba91f9cdaf854d9a39e5ff0b58e2b5773b9c"},
+ {file = "multidict-6.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5fdda29a3c7e76a064f2477c9aab1ba96fd94e02e386f1e665bca1807fc5386f"},
+ {file = "multidict-6.0.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3368bf2398b0e0fcbf46d85795adc4c259299fec50c1416d0f77c0a843a3eed9"},
+ {file = "multidict-6.0.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f4f052ee022928d34fe1f4d2bc743f32609fb79ed9c49a1710a5ad6b2198db20"},
+ {file = "multidict-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:225383a6603c086e6cef0f2f05564acb4f4d5f019a4e3e983f572b8530f70c88"},
+ {file = "multidict-6.0.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:50bd442726e288e884f7be9071016c15a8742eb689a593a0cac49ea093eef0a7"},
+ {file = "multidict-6.0.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:47e6a7e923e9cada7c139531feac59448f1f47727a79076c0b1ee80274cd8eee"},
+ {file = "multidict-6.0.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:0556a1d4ea2d949efe5fd76a09b4a82e3a4a30700553a6725535098d8d9fb672"},
+ {file = "multidict-6.0.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:626fe10ac87851f4cffecee161fc6f8f9853f0f6f1035b59337a51d29ff3b4f9"},
+ {file = "multidict-6.0.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:8064b7c6f0af936a741ea1efd18690bacfbae4078c0c385d7c3f611d11f0cf87"},
+ {file = "multidict-6.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:2d36e929d7f6a16d4eb11b250719c39560dd70545356365b494249e2186bc389"},
+ {file = "multidict-6.0.2-cp310-cp310-win32.whl", hash = "sha256:fcb91630817aa8b9bc4a74023e4198480587269c272c58b3279875ed7235c293"},
+ {file = "multidict-6.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:8cbf0132f3de7cc6c6ce00147cc78e6439ea736cee6bca4f068bcf892b0fd658"},
+ {file = "multidict-6.0.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:05f6949d6169878a03e607a21e3b862eaf8e356590e8bdae4227eedadacf6e51"},
+ {file = "multidict-6.0.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e2c2e459f7050aeb7c1b1276763364884595d47000c1cddb51764c0d8976e608"},
+ {file = "multidict-6.0.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d0509e469d48940147e1235d994cd849a8f8195e0bca65f8f5439c56e17872a3"},
+ {file = "multidict-6.0.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:514fe2b8d750d6cdb4712346a2c5084a80220821a3e91f3f71eec11cf8d28fd4"},
+ {file = "multidict-6.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:19adcfc2a7197cdc3987044e3f415168fc5dc1f720c932eb1ef4f71a2067e08b"},
+ {file = "multidict-6.0.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b9d153e7f1f9ba0b23ad1568b3b9e17301e23b042c23870f9ee0522dc5cc79e8"},
+ {file = "multidict-6.0.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:aef9cc3d9c7d63d924adac329c33835e0243b5052a6dfcbf7732a921c6e918ba"},
+ {file = "multidict-6.0.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:4571f1beddff25f3e925eea34268422622963cd8dc395bb8778eb28418248e43"},
+ {file = "multidict-6.0.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:d48b8ee1d4068561ce8033d2c344cf5232cb29ee1a0206a7b828c79cbc5982b8"},
+ {file = "multidict-6.0.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:45183c96ddf61bf96d2684d9fbaf6f3564d86b34cb125761f9a0ef9e36c1d55b"},
+ {file = "multidict-6.0.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:75bdf08716edde767b09e76829db8c1e5ca9d8bb0a8d4bd94ae1eafe3dac5e15"},
+ {file = "multidict-6.0.2-cp37-cp37m-win32.whl", hash = "sha256:a45e1135cb07086833ce969555df39149680e5471c04dfd6a915abd2fc3f6dbc"},
+ {file = "multidict-6.0.2-cp37-cp37m-win_amd64.whl", hash = "sha256:6f3cdef8a247d1eafa649085812f8a310e728bdf3900ff6c434eafb2d443b23a"},
+ {file = "multidict-6.0.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:0327292e745a880459ef71be14e709aaea2f783f3537588fb4ed09b6c01bca60"},
+ {file = "multidict-6.0.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:e875b6086e325bab7e680e4316d667fc0e5e174bb5611eb16b3ea121c8951b86"},
+ {file = "multidict-6.0.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:feea820722e69451743a3d56ad74948b68bf456984d63c1a92e8347b7b88452d"},
+ {file = "multidict-6.0.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cc57c68cb9139c7cd6fc39f211b02198e69fb90ce4bc4a094cf5fe0d20fd8b0"},
+ {file = "multidict-6.0.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:497988d6b6ec6ed6f87030ec03280b696ca47dbf0648045e4e1d28b80346560d"},
+ {file = "multidict-6.0.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:89171b2c769e03a953d5969b2f272efa931426355b6c0cb508022976a17fd376"},
+ {file = "multidict-6.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:684133b1e1fe91eda8fa7447f137c9490a064c6b7f392aa857bba83a28cfb693"},
+ {file = "multidict-6.0.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fd9fc9c4849a07f3635ccffa895d57abce554b467d611a5009ba4f39b78a8849"},
+ {file = "multidict-6.0.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:e07c8e79d6e6fd37b42f3250dba122053fddb319e84b55dd3a8d6446e1a7ee49"},
+ {file = "multidict-6.0.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:4070613ea2227da2bfb2c35a6041e4371b0af6b0be57f424fe2318b42a748516"},
+ {file = "multidict-6.0.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:47fbeedbf94bed6547d3aa632075d804867a352d86688c04e606971595460227"},
+ {file = "multidict-6.0.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:5774d9218d77befa7b70d836004a768fb9aa4fdb53c97498f4d8d3f67bb9cfa9"},
+ {file = "multidict-6.0.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:2957489cba47c2539a8eb7ab32ff49101439ccf78eab724c828c1a54ff3ff98d"},
+ {file = "multidict-6.0.2-cp38-cp38-win32.whl", hash = "sha256:e5b20e9599ba74391ca0cfbd7b328fcc20976823ba19bc573983a25b32e92b57"},
+ {file = "multidict-6.0.2-cp38-cp38-win_amd64.whl", hash = "sha256:8004dca28e15b86d1b1372515f32eb6f814bdf6f00952699bdeb541691091f96"},
+ {file = "multidict-6.0.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:2e4a0785b84fb59e43c18a015ffc575ba93f7d1dbd272b4cdad9f5134b8a006c"},
+ {file = "multidict-6.0.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:6701bf8a5d03a43375909ac91b6980aea74b0f5402fbe9428fc3f6edf5d9677e"},
+ {file = "multidict-6.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a007b1638e148c3cfb6bf0bdc4f82776cef0ac487191d093cdc316905e504071"},
+ {file = "multidict-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:07a017cfa00c9890011628eab2503bee5872f27144936a52eaab449be5eaf032"},
+ {file = "multidict-6.0.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c207fff63adcdf5a485969131dc70e4b194327666b7e8a87a97fbc4fd80a53b2"},
+ {file = "multidict-6.0.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:373ba9d1d061c76462d74e7de1c0c8e267e9791ee8cfefcf6b0b2495762c370c"},
+ {file = "multidict-6.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bfba7c6d5d7c9099ba21f84662b037a0ffd4a5e6b26ac07d19e423e6fdf965a9"},
+ {file = "multidict-6.0.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:19d9bad105dfb34eb539c97b132057a4e709919ec4dd883ece5838bcbf262b80"},
+ {file = "multidict-6.0.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:de989b195c3d636ba000ee4281cd03bb1234635b124bf4cd89eeee9ca8fcb09d"},
+ {file = "multidict-6.0.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:7c40b7bbece294ae3a87c1bc2abff0ff9beef41d14188cda94ada7bcea99b0fb"},
+ {file = "multidict-6.0.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:d16cce709ebfadc91278a1c005e3c17dd5f71f5098bfae1035149785ea6e9c68"},
+ {file = "multidict-6.0.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:a2c34a93e1d2aa35fbf1485e5010337c72c6791407d03aa5f4eed920343dd360"},
+ {file = "multidict-6.0.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:feba80698173761cddd814fa22e88b0661e98cb810f9f986c54aa34d281e4937"},
+ {file = "multidict-6.0.2-cp39-cp39-win32.whl", hash = "sha256:23b616fdc3c74c9fe01d76ce0d1ce872d2d396d8fa8e4899398ad64fb5aa214a"},
+ {file = "multidict-6.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:4bae31803d708f6f15fd98be6a6ac0b6958fcf68fda3c77a048a4f9073704aae"},
+ {file = "multidict-6.0.2.tar.gz", hash = "sha256:5ff3bd75f38e4c43f1f470f2df7a4d430b821c4ce22be384e1459cb57d6bb013"},
+]
+mypy-extensions = [
+ {file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"},
+ {file = "mypy_extensions-0.4.3.tar.gz", hash = "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"},
+]
+packaging = [
+ {file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"},
+ {file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"},
+]
+pathspec = [
+ {file = "pathspec-0.9.0-py2.py3-none-any.whl", hash = "sha256:7d15c4ddb0b5c802d161efc417ec1a2558ea2653c2e8ad9c19098201dc1c993a"},
+ {file = "pathspec-0.9.0.tar.gz", hash = "sha256:e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1"},
+]
+pbr = [
+ {file = "pbr-5.8.1-py2.py3-none-any.whl", hash = "sha256:27108648368782d07bbf1cb468ad2e2eeef29086affd14087a6d04b7de8af4ec"},
+ {file = "pbr-5.8.1.tar.gz", hash = "sha256:66bc5a34912f408bb3925bf21231cb6f59206267b7f63f3503ef865c1a292e25"},
+]
+pillow = [
+ {file = "Pillow-9.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:af79d3fde1fc2e33561166d62e3b63f0cc3e47b5a3a2e5fea40d4917754734ea"},
+ {file = "Pillow-9.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:55dd1cf09a1fd7c7b78425967aacae9b0d70125f7d3ab973fadc7b5abc3de652"},
+ {file = "Pillow-9.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:66822d01e82506a19407d1afc104c3fcea3b81d5eb11485e593ad6b8492f995a"},
+ {file = "Pillow-9.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a5eaf3b42df2bcda61c53a742ee2c6e63f777d0e085bbc6b2ab7ed57deb13db7"},
+ {file = "Pillow-9.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:01ce45deec9df310cbbee11104bae1a2a43308dd9c317f99235b6d3080ddd66e"},
+ {file = "Pillow-9.1.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:aea7ce61328e15943d7b9eaca87e81f7c62ff90f669116f857262e9da4057ba3"},
+ {file = "Pillow-9.1.0-cp310-cp310-win32.whl", hash = "sha256:7a053bd4d65a3294b153bdd7724dce864a1d548416a5ef61f6d03bf149205160"},
+ {file = "Pillow-9.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:97bda660702a856c2c9e12ec26fc6d187631ddfd896ff685814ab21ef0597033"},
+ {file = "Pillow-9.1.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:21dee8466b42912335151d24c1665fcf44dc2ee47e021d233a40c3ca5adae59c"},
+ {file = "Pillow-9.1.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6b6d4050b208c8ff886fd3db6690bf04f9a48749d78b41b7a5bf24c236ab0165"},
+ {file = "Pillow-9.1.0-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5cfca31ab4c13552a0f354c87fbd7f162a4fafd25e6b521bba93a57fe6a3700a"},
+ {file = "Pillow-9.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ed742214068efa95e9844c2d9129e209ed63f61baa4d54dbf4cf8b5e2d30ccf2"},
+ {file = "Pillow-9.1.0-cp37-cp37m-win32.whl", hash = "sha256:c9efef876c21788366ea1f50ecb39d5d6f65febe25ad1d4c0b8dff98843ac244"},
+ {file = "Pillow-9.1.0-cp37-cp37m-win_amd64.whl", hash = "sha256:de344bcf6e2463bb25179d74d6e7989e375f906bcec8cb86edb8b12acbc7dfef"},
+ {file = "Pillow-9.1.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:17869489de2fce6c36690a0c721bd3db176194af5f39249c1ac56d0bb0fcc512"},
+ {file = "Pillow-9.1.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:25023a6209a4d7c42154073144608c9a71d3512b648a2f5d4465182cb93d3477"},
+ {file = "Pillow-9.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8782189c796eff29dbb37dd87afa4ad4d40fc90b2742704f94812851b725964b"},
+ {file = "Pillow-9.1.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:463acf531f5d0925ca55904fa668bb3461c3ef6bc779e1d6d8a488092bdee378"},
+ {file = "Pillow-9.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3f42364485bfdab19c1373b5cd62f7c5ab7cc052e19644862ec8f15bb8af289e"},
+ {file = "Pillow-9.1.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:3fddcdb619ba04491e8f771636583a7cc5a5051cd193ff1aa1ee8616d2a692c5"},
+ {file = "Pillow-9.1.0-cp38-cp38-win32.whl", hash = "sha256:4fe29a070de394e449fd88ebe1624d1e2d7ddeed4c12e0b31624561b58948d9a"},
+ {file = "Pillow-9.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:c24f718f9dd73bb2b31a6201e6db5ea4a61fdd1d1c200f43ee585fc6dcd21b34"},
+ {file = "Pillow-9.1.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:fb89397013cf302f282f0fc998bb7abf11d49dcff72c8ecb320f76ea6e2c5717"},
+ {file = "Pillow-9.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c870193cce4b76713a2b29be5d8327c8ccbe0d4a49bc22968aa1e680930f5581"},
+ {file = "Pillow-9.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69e5ddc609230d4408277af135c5b5c8fe7a54b2bdb8ad7c5100b86b3aab04c6"},
+ {file = "Pillow-9.1.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:35be4a9f65441d9982240e6966c1eaa1c654c4e5e931eaf580130409e31804d4"},
+ {file = "Pillow-9.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:82283af99c1c3a5ba1da44c67296d5aad19f11c535b551a5ae55328a317ce331"},
+ {file = "Pillow-9.1.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a325ac71914c5c043fa50441b36606e64a10cd262de12f7a179620f579752ff8"},
+ {file = "Pillow-9.1.0-cp39-cp39-win32.whl", hash = "sha256:a598d8830f6ef5501002ae85c7dbfcd9c27cc4efc02a1989369303ba85573e58"},
+ {file = "Pillow-9.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:0c51cb9edac8a5abd069fd0758ac0a8bfe52c261ee0e330f363548aca6893595"},
+ {file = "Pillow-9.1.0-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:a336a4f74baf67e26f3acc4d61c913e378e931817cd1e2ef4dfb79d3e051b481"},
+ {file = "Pillow-9.1.0-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eb1b89b11256b5b6cad5e7593f9061ac4624f7651f7a8eb4dfa37caa1dfaa4d0"},
+ {file = "Pillow-9.1.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:255c9d69754a4c90b0ee484967fc8818c7ff8311c6dddcc43a4340e10cd1636a"},
+ {file = "Pillow-9.1.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:5a3ecc026ea0e14d0ad7cd990ea7f48bfcb3eb4271034657dc9d06933c6629a7"},
+ {file = "Pillow-9.1.0-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c5b0ff59785d93b3437c3703e3c64c178aabada51dea2a7f2c5eccf1bcf565a3"},
+ {file = "Pillow-9.1.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c7110ec1701b0bf8df569a7592a196c9d07c764a0a74f65471ea56816f10e2c8"},
+ {file = "Pillow-9.1.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:8d79c6f468215d1a8415aa53d9868a6b40c4682165b8cb62a221b1baa47db458"},
+ {file = "Pillow-9.1.0.tar.gz", hash = "sha256:f401ed2bbb155e1ade150ccc63db1a4f6c1909d3d378f7d1235a44e90d75fb97"},
+]
+platformdirs = [
+ {file = "platformdirs-2.5.2-py3-none-any.whl", hash = "sha256:027d8e83a2d7de06bbac4e5ef7e023c02b863d7ea5d079477e722bb41ab25788"},
+ {file = "platformdirs-2.5.2.tar.gz", hash = "sha256:58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19"},
+]
+prompt-toolkit = [
+ {file = "prompt_toolkit-3.0.29-py3-none-any.whl", hash = "sha256:62291dad495e665fca0bda814e342c69952086afb0f4094d0893d357e5c78752"},
+ {file = "prompt_toolkit-3.0.29.tar.gz", hash = "sha256:bd640f60e8cecd74f0dc249713d433ace2ddc62b65ee07f96d358e0b152b6ea7"},
+]
+pyaes = [
+ {file = "pyaes-1.6.1.tar.gz", hash = "sha256:02c1b1405c38d3c370b085fb952dd8bea3fadcee6411ad99f312cc129c536d8f"},
+]
+pyasn1 = [
+ {file = "pyasn1-0.4.8-py2.4.egg", hash = "sha256:fec3e9d8e36808a28efb59b489e4528c10ad0f480e57dcc32b4de5c9d8c9fdf3"},
+ {file = "pyasn1-0.4.8-py2.5.egg", hash = "sha256:0458773cfe65b153891ac249bcf1b5f8f320b7c2ce462151f8fa74de8934becf"},
+ {file = "pyasn1-0.4.8-py2.6.egg", hash = "sha256:5c9414dcfede6e441f7e8f81b43b34e834731003427e5b09e4e00e3172a10f00"},
+ {file = "pyasn1-0.4.8-py2.7.egg", hash = "sha256:6e7545f1a61025a4e58bb336952c5061697da694db1cae97b116e9c46abcf7c8"},
+ {file = "pyasn1-0.4.8-py2.py3-none-any.whl", hash = "sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d"},
+ {file = "pyasn1-0.4.8-py3.1.egg", hash = "sha256:78fa6da68ed2727915c4767bb386ab32cdba863caa7dbe473eaae45f9959da86"},
+ {file = "pyasn1-0.4.8-py3.2.egg", hash = "sha256:08c3c53b75eaa48d71cf8c710312316392ed40899cb34710d092e96745a358b7"},
+ {file = "pyasn1-0.4.8-py3.3.egg", hash = "sha256:03840c999ba71680a131cfaee6fab142e1ed9bbd9c693e285cc6aca0d555e576"},
+ {file = "pyasn1-0.4.8-py3.4.egg", hash = "sha256:7ab8a544af125fb704feadb008c99a88805126fb525280b2270bb25cc1d78a12"},
+ {file = "pyasn1-0.4.8-py3.5.egg", hash = "sha256:e89bf84b5437b532b0803ba5c9a5e054d21fec423a89952a74f87fa2c9b7bce2"},
+ {file = "pyasn1-0.4.8-py3.6.egg", hash = "sha256:014c0e9976956a08139dc0712ae195324a75e142284d5f87f1a87ee1b068a359"},
+ {file = "pyasn1-0.4.8-py3.7.egg", hash = "sha256:99fcc3c8d804d1bc6d9a099921e39d827026409a58f2a720dcdb89374ea0c776"},
+ {file = "pyasn1-0.4.8.tar.gz", hash = "sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba"},
+]
+pycodestyle = [
+ {file = "pycodestyle-2.8.0-py2.py3-none-any.whl", hash = "sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20"},
+ {file = "pycodestyle-2.8.0.tar.gz", hash = "sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f"},
+]
+pycparser = [
+ {file = "pycparser-2.21-py2.py3-none-any.whl", hash = "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9"},
+ {file = "pycparser-2.21.tar.gz", hash = "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"},
+]
+pydantic = [
+ {file = "pydantic-1.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:cb23bcc093697cdea2708baae4f9ba0e972960a835af22560f6ae4e7e47d33f5"},
+ {file = "pydantic-1.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1d5278bd9f0eee04a44c712982343103bba63507480bfd2fc2790fa70cd64cf4"},
+ {file = "pydantic-1.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ab624700dc145aa809e6f3ec93fb8e7d0f99d9023b713f6a953637429b437d37"},
+ {file = "pydantic-1.9.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c8d7da6f1c1049eefb718d43d99ad73100c958a5367d30b9321b092771e96c25"},
+ {file = "pydantic-1.9.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:3c3b035103bd4e2e4a28da9da7ef2fa47b00ee4a9cf4f1a735214c1bcd05e0f6"},
+ {file = "pydantic-1.9.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:3011b975c973819883842c5ab925a4e4298dffccf7782c55ec3580ed17dc464c"},
+ {file = "pydantic-1.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:086254884d10d3ba16da0588604ffdc5aab3f7f09557b998373e885c690dd398"},
+ {file = "pydantic-1.9.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:0fe476769acaa7fcddd17cadd172b156b53546ec3614a4d880e5d29ea5fbce65"},
+ {file = "pydantic-1.9.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c8e9dcf1ac499679aceedac7e7ca6d8641f0193c591a2d090282aaf8e9445a46"},
+ {file = "pydantic-1.9.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d1e4c28f30e767fd07f2ddc6f74f41f034d1dd6bc526cd59e63a82fe8bb9ef4c"},
+ {file = "pydantic-1.9.0-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:c86229333cabaaa8c51cf971496f10318c4734cf7b641f08af0a6fbf17ca3054"},
+ {file = "pydantic-1.9.0-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:c0727bda6e38144d464daec31dff936a82917f431d9c39c39c60a26567eae3ed"},
+ {file = "pydantic-1.9.0-cp36-cp36m-win_amd64.whl", hash = "sha256:dee5ef83a76ac31ab0c78c10bd7d5437bfdb6358c95b91f1ba7ff7b76f9996a1"},
+ {file = "pydantic-1.9.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d9c9bdb3af48e242838f9f6e6127de9be7063aad17b32215ccc36a09c5cf1070"},
+ {file = "pydantic-1.9.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ee7e3209db1e468341ef41fe263eb655f67f5c5a76c924044314e139a1103a2"},
+ {file = "pydantic-1.9.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0b6037175234850ffd094ca77bf60fb54b08b5b22bc85865331dd3bda7a02fa1"},
+ {file = "pydantic-1.9.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:b2571db88c636d862b35090ccf92bf24004393f85c8870a37f42d9f23d13e032"},
+ {file = "pydantic-1.9.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:8b5ac0f1c83d31b324e57a273da59197c83d1bb18171e512908fe5dc7278a1d6"},
+ {file = "pydantic-1.9.0-cp37-cp37m-win_amd64.whl", hash = "sha256:bbbc94d0c94dd80b3340fc4f04fd4d701f4b038ebad72c39693c794fd3bc2d9d"},
+ {file = "pydantic-1.9.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:e0896200b6a40197405af18828da49f067c2fa1f821491bc8f5bde241ef3f7d7"},
+ {file = "pydantic-1.9.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:7bdfdadb5994b44bd5579cfa7c9b0e1b0e540c952d56f627eb227851cda9db77"},
+ {file = "pydantic-1.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:574936363cd4b9eed8acdd6b80d0143162f2eb654d96cb3a8ee91d3e64bf4cf9"},
+ {file = "pydantic-1.9.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c556695b699f648c58373b542534308922c46a1cda06ea47bc9ca45ef5b39ae6"},
+ {file = "pydantic-1.9.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:f947352c3434e8b937e3aa8f96f47bdfe6d92779e44bb3f41e4c213ba6a32145"},
+ {file = "pydantic-1.9.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5e48ef4a8b8c066c4a31409d91d7ca372a774d0212da2787c0d32f8045b1e034"},
+ {file = "pydantic-1.9.0-cp38-cp38-win_amd64.whl", hash = "sha256:96f240bce182ca7fe045c76bcebfa0b0534a1bf402ed05914a6f1dadff91877f"},
+ {file = "pydantic-1.9.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:815ddebb2792efd4bba5488bc8fde09c29e8ca3227d27cf1c6990fc830fd292b"},
+ {file = "pydantic-1.9.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6c5b77947b9e85a54848343928b597b4f74fc364b70926b3c4441ff52620640c"},
+ {file = "pydantic-1.9.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4c68c3bc88dbda2a6805e9a142ce84782d3930f8fdd9655430d8576315ad97ce"},
+ {file = "pydantic-1.9.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5a79330f8571faf71bf93667d3ee054609816f10a259a109a0738dac983b23c3"},
+ {file = "pydantic-1.9.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:f5a64b64ddf4c99fe201ac2724daada8595ada0d102ab96d019c1555c2d6441d"},
+ {file = "pydantic-1.9.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a733965f1a2b4090a5238d40d983dcd78f3ecea221c7af1497b845a9709c1721"},
+ {file = "pydantic-1.9.0-cp39-cp39-win_amd64.whl", hash = "sha256:2cc6a4cb8a118ffec2ca5fcb47afbacb4f16d0ab8b7350ddea5e8ef7bcc53a16"},
+ {file = "pydantic-1.9.0-py3-none-any.whl", hash = "sha256:085ca1de245782e9b46cefcf99deecc67d418737a1fd3f6a4f511344b613a5b3"},
+ {file = "pydantic-1.9.0.tar.gz", hash = "sha256:742645059757a56ecd886faf4ed2441b9c0cd406079c2b4bee51bcc3fbcd510a"},
+]
+pyflakes = [
+ {file = "pyflakes-2.4.0-py2.py3-none-any.whl", hash = "sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e"},
+ {file = "pyflakes-2.4.0.tar.gz", hash = "sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c"},
+]
+pyparsing = [
+ {file = "pyparsing-3.0.8-py3-none-any.whl", hash = "sha256:ef7b523f6356f763771559412c0d7134753f037822dad1b16945b7b846f7ad06"},
+ {file = "pyparsing-3.0.8.tar.gz", hash = "sha256:7bf433498c016c4314268d95df76c81b842a4cb2b276fa3312cfb1e1d85f6954"},
+]
+python-dotenv = [
+ {file = "python-dotenv-0.20.0.tar.gz", hash = "sha256:b7e3b04a59693c42c36f9ab1cc2acc46fa5df8c78e178fc33a8d4cd05c8d498f"},
+ {file = "python_dotenv-0.20.0-py3-none-any.whl", hash = "sha256:d92a187be61fe482e4fd675b6d52200e7be63a12b724abbf931a40ce4fa92938"},
+]
+pytz = [
+ {file = "pytz-2022.1-py2.py3-none-any.whl", hash = "sha256:e68985985296d9a66a881eb3193b0906246245294a881e7c8afe623866ac6a5c"},
+ {file = "pytz-2022.1.tar.gz", hash = "sha256:1e760e2fe6a8163bc0b3d9a19c4f84342afa0a2affebfaa84b01b978a02ecaa7"},
+]
+pyyaml = [
+ {file = "PyYAML-6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53"},
+ {file = "PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c"},
+ {file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77f396e6ef4c73fdc33a9157446466f1cff553d979bd00ecb64385760c6babdc"},
+ {file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a80a78046a72361de73f8f395f1f1e49f956c6be882eed58505a15f3e430962b"},
+ {file = "PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f84fbc98b019fef2ee9a1cb3ce93e3187a6df0b2538a651bfb890254ba9f90b5"},
+ {file = "PyYAML-6.0-cp310-cp310-win32.whl", hash = "sha256:2cd5df3de48857ed0544b34e2d40e9fac445930039f3cfe4bcc592a1f836d513"},
+ {file = "PyYAML-6.0-cp310-cp310-win_amd64.whl", hash = "sha256:daf496c58a8c52083df09b80c860005194014c3698698d1a57cbcfa182142a3a"},
+ {file = "PyYAML-6.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:897b80890765f037df3403d22bab41627ca8811ae55e9a722fd0392850ec4d86"},
+ {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50602afada6d6cbfad699b0c7bb50d5ccffa7e46a3d738092afddc1f9758427f"},
+ {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:48c346915c114f5fdb3ead70312bd042a953a8ce5c7106d5bfb1a5254e47da92"},
+ {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:98c4d36e99714e55cfbaaee6dd5badbc9a1ec339ebfc3b1f52e293aee6bb71a4"},
+ {file = "PyYAML-6.0-cp36-cp36m-win32.whl", hash = "sha256:0283c35a6a9fbf047493e3a0ce8d79ef5030852c51e9d911a27badfde0605293"},
+ {file = "PyYAML-6.0-cp36-cp36m-win_amd64.whl", hash = "sha256:07751360502caac1c067a8132d150cf3d61339af5691fe9e87803040dbc5db57"},
+ {file = "PyYAML-6.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:819b3830a1543db06c4d4b865e70ded25be52a2e0631ccd2f6a47a2822f2fd7c"},
+ {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:473f9edb243cb1935ab5a084eb238d842fb8f404ed2193a915d1784b5a6b5fc0"},
+ {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ce82d761c532fe4ec3f87fc45688bdd3a4c1dc5e0b4a19814b9009a29baefd4"},
+ {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:231710d57adfd809ef5d34183b8ed1eeae3f76459c18fb4a0b373ad56bedcdd9"},
+ {file = "PyYAML-6.0-cp37-cp37m-win32.whl", hash = "sha256:c5687b8d43cf58545ade1fe3e055f70eac7a5a1a0bf42824308d868289a95737"},
+ {file = "PyYAML-6.0-cp37-cp37m-win_amd64.whl", hash = "sha256:d15a181d1ecd0d4270dc32edb46f7cb7733c7c508857278d3d378d14d606db2d"},
+ {file = "PyYAML-6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0b4624f379dab24d3725ffde76559cff63d9ec94e1736b556dacdfebe5ab6d4b"},
+ {file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:213c60cd50106436cc818accf5baa1aba61c0189ff610f64f4a3e8c6726218ba"},
+ {file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9fa600030013c4de8165339db93d182b9431076eb98eb40ee068700c9c813e34"},
+ {file = "PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:277a0ef2981ca40581a47093e9e2d13b3f1fbbeffae064c1d21bfceba2030287"},
+ {file = "PyYAML-6.0-cp38-cp38-win32.whl", hash = "sha256:d4eccecf9adf6fbcc6861a38015c2a64f38b9d94838ac1810a9023a0609e1b78"},
+ {file = "PyYAML-6.0-cp38-cp38-win_amd64.whl", hash = "sha256:1e4747bc279b4f613a09eb64bba2ba602d8a6664c6ce6396a4d0cd413a50ce07"},
+ {file = "PyYAML-6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:055d937d65826939cb044fc8c9b08889e8c743fdc6a32b33e2390f66013e449b"},
+ {file = "PyYAML-6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e61ceaab6f49fb8bdfaa0f92c4b57bcfbea54c09277b1b4f7ac376bfb7a7c174"},
+ {file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d67d839ede4ed1b28a4e8909735fc992a923cdb84e618544973d7dfc71540803"},
+ {file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cba8c411ef271aa037d7357a2bc8f9ee8b58b9965831d9e51baf703280dc73d3"},
+ {file = "PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0"},
+ {file = "PyYAML-6.0-cp39-cp39-win32.whl", hash = "sha256:b5b9eccad747aabaaffbc6064800670f0c297e52c12754eb1d976c57e4f74dcb"},
+ {file = "PyYAML-6.0-cp39-cp39-win_amd64.whl", hash = "sha256:b3d267842bf12586ba6c734f89d1f5b871df0273157918b0ccefa29deb05c21c"},
+ {file = "PyYAML-6.0.tar.gz", hash = "sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"},
+]
+requests = [
+ {file = "requests-2.27.1-py2.py3-none-any.whl", hash = "sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d"},
+ {file = "requests-2.27.1.tar.gz", hash = "sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61"},
+]
+rsa = [
+ {file = "rsa-4.8-py3-none-any.whl", hash = "sha256:95c5d300c4e879ee69708c428ba566c59478fd653cc3a22243eeb8ed846950bb"},
+ {file = "rsa-4.8.tar.gz", hash = "sha256:5c6bd9dc7a543b7fe4304a631f8a8a3b674e2bbfc49c2ae96200cdbe55df6b17"},
+]
+six = [
+ {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"},
+ {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"},
+]
+smmap = [
+ {file = "smmap-5.0.0-py3-none-any.whl", hash = "sha256:2aba19d6a040e78d8b09de5c57e96207b09ed71d8e55ce0959eeee6c8e190d94"},
+ {file = "smmap-5.0.0.tar.gz", hash = "sha256:c840e62059cd3be204b0c9c9f74be2c09d5648eddd4580d9314c3ecde0b30936"},
+]
+sniffio = [
+ {file = "sniffio-1.2.0-py3-none-any.whl", hash = "sha256:471b71698eac1c2112a40ce2752bb2f4a4814c22a54a3eed3676bc0f5ca9f663"},
+ {file = "sniffio-1.2.0.tar.gz", hash = "sha256:c4666eecec1d3f50960c6bdf61ab7bc350648da6c126e3cf6898d8cd4ddcd3de"},
+]
+sqlalchemy = [
+ {file = "SQLAlchemy-1.4.35-cp27-cp27m-macosx_10_14_x86_64.whl", hash = "sha256:093b3109c2747d5dc0fa4314b1caf4c7ca336d5c8c831e3cfbec06a7e861e1e6"},
+ {file = "SQLAlchemy-1.4.35-cp27-cp27m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:c6fb6b9ed1d0be7fa2c90be8ad2442c14cbf84eb0709dd1afeeff1e511550041"},
+ {file = "SQLAlchemy-1.4.35-cp27-cp27m-win32.whl", hash = "sha256:d38a49aa75a5759d0d118e26701d70c70a37b896379115f8386e91b0444bfa70"},
+ {file = "SQLAlchemy-1.4.35-cp27-cp27m-win_amd64.whl", hash = "sha256:70e571ae9ee0ff36ed37e2b2765445d54981e4d600eccdf6fe3838bc2538d157"},
+ {file = "SQLAlchemy-1.4.35-cp27-cp27mu-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:48036698f20080462e981b18d77d574631a3d1fc2c33b416c6df299ec1d10b99"},
+ {file = "SQLAlchemy-1.4.35-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:4ba2c1f368bcf8551cdaa27eac525022471015633d5bdafbc4297e0511f62f51"},
+ {file = "SQLAlchemy-1.4.35-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d17316100fcd0b6371ac9211351cb976fd0c2e12a859c1a57965e3ef7f3ed2bc"},
+ {file = "SQLAlchemy-1.4.35-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:9837133b89ad017e50a02a3b46419869cf4e9aa02743e911b2a9e25fa6b05403"},
+ {file = "SQLAlchemy-1.4.35-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a4efb70a62cbbbc052c67dc66b5448b0053b509732184af3e7859d05fdf6223c"},
+ {file = "SQLAlchemy-1.4.35-cp310-cp310-win32.whl", hash = "sha256:1ff9f84b2098ef1b96255a80981ee10f4b5d49b6cfeeccf9632c2078cd86052e"},
+ {file = "SQLAlchemy-1.4.35-cp310-cp310-win_amd64.whl", hash = "sha256:48f0eb5bcc87a9b2a95b345ed18d6400daaa86ca414f6840961ed85c342af8f4"},
+ {file = "SQLAlchemy-1.4.35-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:da25e75ba9f3fabc271673b6b413ca234994e6d3453424bea36bb5549c5bbaec"},
+ {file = "SQLAlchemy-1.4.35-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aeea6ace30603ca9a8869853bb4a04c7446856d7789e36694cd887967b7621f6"},
+ {file = "SQLAlchemy-1.4.35-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:a5dbdbb39c1b100df4d182c78949158073ca46ba2850c64fe02ffb1eb5b70903"},
+ {file = "SQLAlchemy-1.4.35-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cfd8e4c64c30a5219032e64404d468c425bdbc13b397da906fc9bee6591fc0dd"},
+ {file = "SQLAlchemy-1.4.35-cp36-cp36m-win32.whl", hash = "sha256:9dac1924611698f8fe5b2e58601156c01da2b6c0758ba519003013a78280cf4d"},
+ {file = "SQLAlchemy-1.4.35-cp36-cp36m-win_amd64.whl", hash = "sha256:e8b09e2d90267717d850f2e2323919ea32004f55c40e5d53b41267e382446044"},
+ {file = "SQLAlchemy-1.4.35-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:63c82c9e8ccc2fb4bfd87c24ffbac320f70b7c93b78f206c1f9c441fa3013a5f"},
+ {file = "SQLAlchemy-1.4.35-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:effadcda9a129cc56408dd5b2ea20ee9edcea24bd58e6a1489fa27672d733182"},
+ {file = "SQLAlchemy-1.4.35-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:2c6c411d8c59afba95abccd2b418f30ade674186660a2d310d364843049fb2c1"},
+ {file = "SQLAlchemy-1.4.35-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b2489e70bfa2356f2d421106794507daccf6cc8711753c442fc97272437fc606"},
+ {file = "SQLAlchemy-1.4.35-cp37-cp37m-win32.whl", hash = "sha256:186cb3bd77abf2ddcf722f755659559bfb157647b3fd3f32ea1c70e8311e8f6b"},
+ {file = "SQLAlchemy-1.4.35-cp37-cp37m-win_amd64.whl", hash = "sha256:babd63fb7cb6b0440abb6d16aca2be63342a6eea3dc7b613bb7a9357dc36920f"},
+ {file = "SQLAlchemy-1.4.35-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:9e1a72197529ea00357640f21d92ffc7024e156ef9ac36edf271c8335facbc1a"},
+ {file = "SQLAlchemy-1.4.35-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e255a8dd5572b0c66d6ee53597d36157ad6cf3bc1114f61c54a65189f996ab03"},
+ {file = "SQLAlchemy-1.4.35-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:9bec63b1e20ef69484f530fb4b4837e050450637ff9acd6dccc7003c5013abf8"},
+ {file = "SQLAlchemy-1.4.35-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:95411abc0e36d18f54fa5e24d42960ea3f144fb16caaa5a8c2e492b5424cc82c"},
+ {file = "SQLAlchemy-1.4.35-cp38-cp38-win32.whl", hash = "sha256:28b17ebbaee6587013be2f78dc4f6e95115e1ec8dd7647c4e7be048da749e48b"},
+ {file = "SQLAlchemy-1.4.35-cp38-cp38-win_amd64.whl", hash = "sha256:9e7094cf04e6042c4210a185fa7b9b8b3b789dd6d1de7b4f19452290838e48bd"},
+ {file = "SQLAlchemy-1.4.35-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:1b4eac3933c335d7f375639885765722534bb4e52e51cdc01a667eea822af9b6"},
+ {file = "SQLAlchemy-1.4.35-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9d8edfb09ed2b865485530c13e269833dab62ab2d582fde21026c9039d4d0e62"},
+ {file = "SQLAlchemy-1.4.35-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:6204d06bfa85f87625e1831ca663f9dba91ac8aec24b8c65d02fb25cbaf4b4d7"},
+ {file = "SQLAlchemy-1.4.35-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:28aa2ef06c904729620cc735262192e622db9136c26d8587f71f29ec7715628a"},
+ {file = "SQLAlchemy-1.4.35-cp39-cp39-win32.whl", hash = "sha256:ecc81336b46e31ae9c9bdfa220082079914e31a476d088d3337ecf531d861228"},
+ {file = "SQLAlchemy-1.4.35-cp39-cp39-win_amd64.whl", hash = "sha256:53c7469b86a60fe2babca4f70111357e6e3d5150373bc85eb3b914356983e89a"},
+ {file = "SQLAlchemy-1.4.35.tar.gz", hash = "sha256:2ffc813b01dc6473990f5e575f210ca5ac2f5465ace3908b78ffd6d20058aab5"},
+]
+sqlalchemy2-stubs = [
+ {file = "sqlalchemy2-stubs-0.0.2a22.tar.gz", hash = "sha256:31288db647bbdd411ad1e22da39a10ebe211bdcfe2efef24bcebea05abc28dd4"},
+ {file = "sqlalchemy2_stubs-0.0.2a22-py3-none-any.whl", hash = "sha256:b9b907c3555d0b11bb8d738b788be478ce3871174839171d0d49aba5d0785016"},
+]
+starlette = [
+ {file = "starlette-0.17.1-py3-none-any.whl", hash = "sha256:26a18cbda5e6b651c964c12c88b36d9898481cd428ed6e063f5f29c418f73050"},
+ {file = "starlette-0.17.1.tar.gz", hash = "sha256:57eab3cc975a28af62f6faec94d355a410634940f10b30d68d31cb5ec1b44ae8"},
+]
+stevedore = [
+ {file = "stevedore-3.5.0-py3-none-any.whl", hash = "sha256:a547de73308fd7e90075bb4d301405bebf705292fa90a90fc3bcf9133f58616c"},
+ {file = "stevedore-3.5.0.tar.gz", hash = "sha256:f40253887d8712eaa2bb0ea3830374416736dc8ec0e22f5a65092c1174c44335"},
+]
+telethon = [
+ {file = "Telethon-1.24.0-py3-none-any.whl", hash = "sha256:04fdc5fa4ed3e886e6ecf4bad79205ab8880c6aefbd42c29c89c689a502aa816"},
+ {file = "Telethon-1.24.0.tar.gz", hash = "sha256:818cb61281ed3f75ba4da9b68cb69486bed9474d2db4e0aa16e482053117452c"},
+]
+toml = [
+ {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"},
+ {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"},
+]
+tomli = [
+ {file = "tomli-1.2.3-py3-none-any.whl", hash = "sha256:e3069e4be3ead9668e21cb9b074cd948f7b3113fd9c8bba083f48247aab8b11c"},
+ {file = "tomli-1.2.3.tar.gz", hash = "sha256:05b6166bff487dc068d322585c7ea4ef78deed501cc124060e0f238e89a9231f"},
+]
+typing-extensions = [
+ {file = "typing_extensions-4.2.0-py3-none-any.whl", hash = "sha256:6657594ee297170d19f67d55c05852a874e7eb634f4f753dbd667855e07c1708"},
+ {file = "typing_extensions-4.2.0.tar.gz", hash = "sha256:f1c24655a0da0d1b67f07e17a5e6b2a105894e6824b92096378bb3668ef02376"},
+]
+urllib3 = [
+ {file = "urllib3-1.26.9-py2.py3-none-any.whl", hash = "sha256:44ece4d53fb1706f667c9bd1c648f5469a2ec925fcf3a776667042d645472c14"},
+ {file = "urllib3-1.26.9.tar.gz", hash = "sha256:aabaf16477806a5e1dd19aa41f8c2b7950dd3c746362d7e3223dbe6de6ac448e"},
+]
+uvicorn = [
+ {file = "uvicorn-0.17.6-py3-none-any.whl", hash = "sha256:19e2a0e96c9ac5581c01eb1a79a7d2f72bb479691acd2b8921fce48ed5b961a6"},
+ {file = "uvicorn-0.17.6.tar.gz", hash = "sha256:5180f9d059611747d841a4a4c4ab675edf54c8489e97f96d0583ee90ac3bfc23"},
+]
+uvloop = [
+ {file = "uvloop-0.16.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:6224f1401025b748ffecb7a6e2652b17768f30b1a6a3f7b44660e5b5b690b12d"},
+ {file = "uvloop-0.16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:30ba9dcbd0965f5c812b7c2112a1ddf60cf904c1c160f398e7eed3a6b82dcd9c"},
+ {file = "uvloop-0.16.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:bd53f7f5db562f37cd64a3af5012df8cac2c464c97e732ed556800129505bd64"},
+ {file = "uvloop-0.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:772206116b9b57cd625c8a88f2413df2fcfd0b496eb188b82a43bed7af2c2ec9"},
+ {file = "uvloop-0.16.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b572256409f194521a9895aef274cea88731d14732343da3ecdb175228881638"},
+ {file = "uvloop-0.16.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:04ff57aa137230d8cc968f03481176041ae789308b4d5079118331ab01112450"},
+ {file = "uvloop-0.16.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3a19828c4f15687675ea912cc28bbcb48e9bb907c801873bd1519b96b04fb805"},
+ {file = "uvloop-0.16.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:e814ac2c6f9daf4c36eb8e85266859f42174a4ff0d71b99405ed559257750382"},
+ {file = "uvloop-0.16.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:bd8f42ea1ea8f4e84d265769089964ddda95eb2bb38b5cbe26712b0616c3edee"},
+ {file = "uvloop-0.16.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:647e481940379eebd314c00440314c81ea547aa636056f554d491e40503c8464"},
+ {file = "uvloop-0.16.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8e0d26fa5875d43ddbb0d9d79a447d2ace4180d9e3239788208527c4784f7cab"},
+ {file = "uvloop-0.16.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:6ccd57ae8db17d677e9e06192e9c9ec4bd2066b77790f9aa7dede2cc4008ee8f"},
+ {file = "uvloop-0.16.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:089b4834fd299d82d83a25e3335372f12117a7d38525217c2258e9b9f4578897"},
+ {file = "uvloop-0.16.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:98d117332cc9e5ea8dfdc2b28b0a23f60370d02e1395f88f40d1effd2cb86c4f"},
+ {file = "uvloop-0.16.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1e5f2e2ff51aefe6c19ee98af12b4ae61f5be456cd24396953244a30880ad861"},
+ {file = "uvloop-0.16.0.tar.gz", hash = "sha256:f74bc20c7b67d1c27c72601c78cf95be99d5c2cdd4514502b4f3eb0933ff1228"},
+]
+vbml = [
+ {file = "vbml-1.1.post1-py3-none-any.whl", hash = "sha256:e3037c3f67b79128c48a100326fde833345e7d1e0d466566d37c2c98d08a587d"},
+ {file = "vbml-1.1.post1.tar.gz", hash = "sha256:59e852b35b2c4d3f8e7d927ab2e0a9dde753f3427ab9a61aca7ed2f4d3986f3c"},
+]
+vine = [
+ {file = "vine-5.0.0-py2.py3-none-any.whl", hash = "sha256:4c9dceab6f76ed92105027c49c823800dd33cacce13bdedc5b914e3514b7fb30"},
+ {file = "vine-5.0.0.tar.gz", hash = "sha256:7d3b1624a953da82ef63462013bbd271d3eb75751489f9807598e8f340bd637e"},
+]
+vkaudiotoken = []
+vkbottle = [
+ {file = "vkbottle-4.2.2-py3-none-any.whl", hash = "sha256:2bb9dbbe49c18bc43b1ed7f085d776bc4182ea4b6d8fee6dd66f7a11bd2cea7a"},
+ {file = "vkbottle-4.2.2.tar.gz", hash = "sha256:64505aa749135201259884627e71ad877ed6a07f624d0284afc78a49c8db7171"},
+]
+vkbottle-types = [
+ {file = "vkbottle-types-5.131.146.1.tar.gz", hash = "sha256:28dbff9ec244dc11e1ad903f2934daa7b2ce100a7af1c2ccd84f8f53ba7780d5"},
+ {file = "vkbottle_types-5.131.146.1-py3-none-any.whl", hash = "sha256:b6255d128330f3ec66ae53dda64dec06e7b48227947786ce6bc030374bcd09e2"},
+]
+watchgod = [
+ {file = "watchgod-0.7-py3-none-any.whl", hash = "sha256:d6c1ea21df37847ac0537ca0d6c2f4cdf513562e95f77bb93abbcf05573407b7"},
+ {file = "watchgod-0.7.tar.gz", hash = "sha256:48140d62b0ebe9dd9cf8381337f06351e1f2e70b2203fa9c6eff4e572ca84f29"},
+]
+wcwidth = [
+ {file = "wcwidth-0.2.5-py2.py3-none-any.whl", hash = "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784"},
+ {file = "wcwidth-0.2.5.tar.gz", hash = "sha256:c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"},
+]
+websockets = [
+ {file = "websockets-10.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:661f641b44ed315556a2fa630239adfd77bd1b11cb0b9d96ed8ad90b0b1e4978"},
+ {file = "websockets-10.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b529fdfa881b69fe563dbd98acce84f3e5a67df13de415e143ef053ff006d500"},
+ {file = "websockets-10.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f351c7d7d92f67c0609329ab2735eee0426a03022771b00102816a72715bb00b"},
+ {file = "websockets-10.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:379e03422178436af4f3abe0aa8f401aa77ae2487843738542a75faf44a31f0c"},
+ {file = "websockets-10.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:e904c0381c014b914136c492c8fa711ca4cced4e9b3d110e5e7d436d0fc289e8"},
+ {file = "websockets-10.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:e7e6f2d6fd48422071cc8a6f8542016f350b79cc782752de531577d35e9bd677"},
+ {file = "websockets-10.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:b9c77f0d1436ea4b4dc089ed8335fa141e6a251a92f75f675056dac4ab47a71e"},
+ {file = "websockets-10.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:e6fa05a680e35d0fcc1470cb070b10e6fe247af54768f488ed93542e71339d6f"},
+ {file = "websockets-10.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:2f94fa3ae454a63ea3a19f73b95deeebc9f02ba2d5617ca16f0bbdae375cda47"},
+ {file = "websockets-10.3-cp310-cp310-win32.whl", hash = "sha256:6ed1d6f791eabfd9808afea1e068f5e59418e55721db8b7f3bfc39dc831c42ae"},
+ {file = "websockets-10.3-cp310-cp310-win_amd64.whl", hash = "sha256:347974105bbd4ea068106ec65e8e8ebd86f28c19e529d115d89bd8cc5cda3079"},
+ {file = "websockets-10.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:fab7c640815812ed5f10fbee7abbf58788d602046b7bb3af9b1ac753a6d5e916"},
+ {file = "websockets-10.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:994cdb1942a7a4c2e10098d9162948c9e7b235df755de91ca33f6e0481366fdb"},
+ {file = "websockets-10.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:aad5e300ab32036eb3fdc350ad30877210e2f51bceaca83fb7fef4d2b6c72b79"},
+ {file = "websockets-10.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:e49ea4c1a9543d2bd8a747ff24411509c29e4bdcde05b5b0895e2120cb1a761d"},
+ {file = "websockets-10.3-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:6ea6b300a6bdd782e49922d690e11c3669828fe36fc2471408c58b93b5535a98"},
+ {file = "websockets-10.3-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:ef5ce841e102278c1c2e98f043db99d6755b1c58bde475516aef3a008ed7f28e"},
+ {file = "websockets-10.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:d1655a6fc7aecd333b079d00fb3c8132d18988e47f19740c69303bf02e9883c6"},
+ {file = "websockets-10.3-cp37-cp37m-win32.whl", hash = "sha256:83e5ca0d5b743cde3d29fda74ccab37bdd0911f25bd4cdf09ff8b51b7b4f2fa1"},
+ {file = "websockets-10.3-cp37-cp37m-win_amd64.whl", hash = "sha256:da4377904a3379f0c1b75a965fff23b28315bcd516d27f99a803720dfebd94d4"},
+ {file = "websockets-10.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:a1e15b230c3613e8ea82c9fc6941b2093e8eb939dd794c02754d33980ba81e36"},
+ {file = "websockets-10.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:31564a67c3e4005f27815634343df688b25705cccb22bc1db621c781ddc64c69"},
+ {file = "websockets-10.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:c8d1d14aa0f600b5be363077b621b1b4d1eb3fbf90af83f9281cda668e6ff7fd"},
+ {file = "websockets-10.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8fbd7d77f8aba46d43245e86dd91a8970eac4fb74c473f8e30e9c07581f852b2"},
+ {file = "websockets-10.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:210aad7fdd381c52e58777560860c7e6110b6174488ef1d4b681c08b68bf7f8c"},
+ {file = "websockets-10.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:6075fd24df23133c1b078e08a9b04a3bc40b31a8def4ee0b9f2c8865acce913e"},
+ {file = "websockets-10.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:7f6d96fdb0975044fdd7953b35d003b03f9e2bcf85f2d2cf86285ece53e9f991"},
+ {file = "websockets-10.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:c7250848ce69559756ad0086a37b82c986cd33c2d344ab87fea596c5ac6d9442"},
+ {file = "websockets-10.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:28dd20b938a57c3124028680dc1600c197294da5db4292c76a0b48efb3ed7f76"},
+ {file = "websockets-10.3-cp38-cp38-win32.whl", hash = "sha256:54c000abeaff6d8771a4e2cef40900919908ea7b6b6a30eae72752607c6db559"},
+ {file = "websockets-10.3-cp38-cp38-win_amd64.whl", hash = "sha256:7ab36e17af592eec5747c68ef2722a74c1a4a70f3772bc661079baf4ae30e40d"},
+ {file = "websockets-10.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:a141de3d5a92188234afa61653ed0bbd2dde46ad47b15c3042ffb89548e77094"},
+ {file = "websockets-10.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:97bc9d41e69a7521a358f9b8e44871f6cdeb42af31815c17aed36372d4eec667"},
+ {file = "websockets-10.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d6353ba89cfc657a3f5beabb3b69be226adbb5c6c7a66398e17809b0ce3c4731"},
+ {file = "websockets-10.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec2b0ab7edc8cd4b0eb428b38ed89079bdc20c6bdb5f889d353011038caac2f9"},
+ {file = "websockets-10.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:85506b3328a9e083cc0a0fb3ba27e33c8db78341b3eb12eb72e8afd166c36680"},
+ {file = "websockets-10.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8af75085b4bc0b5c40c4a3c0e113fa95e84c60f4ed6786cbb675aeb1ee128247"},
+ {file = "websockets-10.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:07cdc0a5b2549bcfbadb585ad8471ebdc7bdf91e32e34ae3889001c1c106a6af"},
+ {file = "websockets-10.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:5b936bf552e4f6357f5727579072ff1e1324717902127ffe60c92d29b67b7be3"},
+ {file = "websockets-10.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:e4e08305bfd76ba8edab08dcc6496f40674f44eb9d5e23153efa0a35750337e8"},
+ {file = "websockets-10.3-cp39-cp39-win32.whl", hash = "sha256:bb621ec2dbbbe8df78a27dbd9dd7919f9b7d32a73fafcb4d9252fc4637343582"},
+ {file = "websockets-10.3-cp39-cp39-win_amd64.whl", hash = "sha256:51695d3b199cd03098ae5b42833006a0f43dc5418d3102972addc593a783bc02"},
+ {file = "websockets-10.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:907e8247480f287aa9bbc9391bd6de23c906d48af54c8c421df84655eef66af7"},
+ {file = "websockets-10.3-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b1359aba0ff810d5830d5ab8e2c4a02bebf98a60aa0124fb29aa78cfdb8031f"},
+ {file = "websockets-10.3-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:93d5ea0b5da8d66d868b32c614d2b52d14304444e39e13a59566d4acb8d6e2e4"},
+ {file = "websockets-10.3-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:7934e055fd5cd9dee60f11d16c8d79c4567315824bacb1246d0208a47eca9755"},
+ {file = "websockets-10.3-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:3eda1cb7e9da1b22588cefff09f0951771d6ee9fa8dbe66f5ae04cc5f26b2b55"},
+ {file = "websockets-10.3.tar.gz", hash = "sha256:fc06cc8073c8e87072138ba1e431300e2d408f054b27047d047b549455066ff4"},
+]
+yarl = [
+ {file = "yarl-1.7.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:f2a8508f7350512434e41065684076f640ecce176d262a7d54f0da41d99c5a95"},
+ {file = "yarl-1.7.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:da6df107b9ccfe52d3a48165e48d72db0eca3e3029b5b8cb4fe6ee3cb870ba8b"},
+ {file = "yarl-1.7.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a1d0894f238763717bdcfea74558c94e3bc34aeacd3351d769460c1a586a8b05"},
+ {file = "yarl-1.7.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dfe4b95b7e00c6635a72e2d00b478e8a28bfb122dc76349a06e20792eb53a523"},
+ {file = "yarl-1.7.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c145ab54702334c42237a6c6c4cc08703b6aa9b94e2f227ceb3d477d20c36c63"},
+ {file = "yarl-1.7.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1ca56f002eaf7998b5fcf73b2421790da9d2586331805f38acd9997743114e98"},
+ {file = "yarl-1.7.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:1d3d5ad8ea96bd6d643d80c7b8d5977b4e2fb1bab6c9da7322616fd26203d125"},
+ {file = "yarl-1.7.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:167ab7f64e409e9bdd99333fe8c67b5574a1f0495dcfd905bc7454e766729b9e"},
+ {file = "yarl-1.7.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:95a1873b6c0dd1c437fb3bb4a4aaa699a48c218ac7ca1e74b0bee0ab16c7d60d"},
+ {file = "yarl-1.7.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:6152224d0a1eb254f97df3997d79dadd8bb2c1a02ef283dbb34b97d4f8492d23"},
+ {file = "yarl-1.7.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:5bb7d54b8f61ba6eee541fba4b83d22b8a046b4ef4d8eb7f15a7e35db2e1e245"},
+ {file = "yarl-1.7.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:9c1f083e7e71b2dd01f7cd7434a5f88c15213194df38bc29b388ccdf1492b739"},
+ {file = "yarl-1.7.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:f44477ae29025d8ea87ec308539f95963ffdc31a82f42ca9deecf2d505242e72"},
+ {file = "yarl-1.7.2-cp310-cp310-win32.whl", hash = "sha256:cff3ba513db55cc6a35076f32c4cdc27032bd075c9faef31fec749e64b45d26c"},
+ {file = "yarl-1.7.2-cp310-cp310-win_amd64.whl", hash = "sha256:c9c6d927e098c2d360695f2e9d38870b2e92e0919be07dbe339aefa32a090265"},
+ {file = "yarl-1.7.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:9b4c77d92d56a4c5027572752aa35082e40c561eec776048330d2907aead891d"},
+ {file = "yarl-1.7.2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c01a89a44bb672c38f42b49cdb0ad667b116d731b3f4c896f72302ff77d71656"},
+ {file = "yarl-1.7.2-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c19324a1c5399b602f3b6e7db9478e5b1adf5cf58901996fc973fe4fccd73eed"},
+ {file = "yarl-1.7.2-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3abddf0b8e41445426d29f955b24aeecc83fa1072be1be4e0d194134a7d9baee"},
+ {file = "yarl-1.7.2-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:6a1a9fe17621af43e9b9fcea8bd088ba682c8192d744b386ee3c47b56eaabb2c"},
+ {file = "yarl-1.7.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8b0915ee85150963a9504c10de4e4729ae700af11df0dc5550e6587ed7891e92"},
+ {file = "yarl-1.7.2-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:29e0656d5497733dcddc21797da5a2ab990c0cb9719f1f969e58a4abac66234d"},
+ {file = "yarl-1.7.2-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:bf19725fec28452474d9887a128e98dd67eee7b7d52e932e6949c532d820dc3b"},
+ {file = "yarl-1.7.2-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:d6f3d62e16c10e88d2168ba2d065aa374e3c538998ed04996cd373ff2036d64c"},
+ {file = "yarl-1.7.2-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:ac10bbac36cd89eac19f4e51c032ba6b412b3892b685076f4acd2de18ca990aa"},
+ {file = "yarl-1.7.2-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:aa32aaa97d8b2ed4e54dc65d241a0da1c627454950f7d7b1f95b13985afd6c5d"},
+ {file = "yarl-1.7.2-cp36-cp36m-win32.whl", hash = "sha256:87f6e082bce21464857ba58b569370e7b547d239ca22248be68ea5d6b51464a1"},
+ {file = "yarl-1.7.2-cp36-cp36m-win_amd64.whl", hash = "sha256:ac35ccde589ab6a1870a484ed136d49a26bcd06b6a1c6397b1967ca13ceb3913"},
+ {file = "yarl-1.7.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:a467a431a0817a292121c13cbe637348b546e6ef47ca14a790aa2fa8cc93df63"},
+ {file = "yarl-1.7.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6ab0c3274d0a846840bf6c27d2c60ba771a12e4d7586bf550eefc2df0b56b3b4"},
+ {file = "yarl-1.7.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d260d4dc495c05d6600264a197d9d6f7fc9347f21d2594926202fd08cf89a8ba"},
+ {file = "yarl-1.7.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fc4dd8b01a8112809e6b636b00f487846956402834a7fd59d46d4f4267181c41"},
+ {file = "yarl-1.7.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:c1164a2eac148d85bbdd23e07dfcc930f2e633220f3eb3c3e2a25f6148c2819e"},
+ {file = "yarl-1.7.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:67e94028817defe5e705079b10a8438b8cb56e7115fa01640e9c0bb3edf67332"},
+ {file = "yarl-1.7.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:89ccbf58e6a0ab89d487c92a490cb5660d06c3a47ca08872859672f9c511fc52"},
+ {file = "yarl-1.7.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:8cce6f9fa3df25f55521fbb5c7e4a736683148bcc0c75b21863789e5185f9185"},
+ {file = "yarl-1.7.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:211fcd65c58bf250fb994b53bc45a442ddc9f441f6fec53e65de8cba48ded986"},
+ {file = "yarl-1.7.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:c10ea1e80a697cf7d80d1ed414b5cb8f1eec07d618f54637067ae3c0334133c4"},
+ {file = "yarl-1.7.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:52690eb521d690ab041c3919666bea13ab9fbff80d615ec16fa81a297131276b"},
+ {file = "yarl-1.7.2-cp37-cp37m-win32.whl", hash = "sha256:695ba021a9e04418507fa930d5f0704edbce47076bdcfeeaba1c83683e5649d1"},
+ {file = "yarl-1.7.2-cp37-cp37m-win_amd64.whl", hash = "sha256:c17965ff3706beedafd458c452bf15bac693ecd146a60a06a214614dc097a271"},
+ {file = "yarl-1.7.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:fce78593346c014d0d986b7ebc80d782b7f5e19843ca798ed62f8e3ba8728576"},
+ {file = "yarl-1.7.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:c2a1ac41a6aa980db03d098a5531f13985edcb451bcd9d00670b03129922cd0d"},
+ {file = "yarl-1.7.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:39d5493c5ecd75c8093fa7700a2fb5c94fe28c839c8e40144b7ab7ccba6938c8"},
+ {file = "yarl-1.7.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1eb6480ef366d75b54c68164094a6a560c247370a68c02dddb11f20c4c6d3c9d"},
+ {file = "yarl-1.7.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5ba63585a89c9885f18331a55d25fe81dc2d82b71311ff8bd378fc8004202ff6"},
+ {file = "yarl-1.7.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e39378894ee6ae9f555ae2de332d513a5763276a9265f8e7cbaeb1b1ee74623a"},
+ {file = "yarl-1.7.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:c0910c6b6c31359d2f6184828888c983d54d09d581a4a23547a35f1d0b9484b1"},
+ {file = "yarl-1.7.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:6feca8b6bfb9eef6ee057628e71e1734caf520a907b6ec0d62839e8293e945c0"},
+ {file = "yarl-1.7.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:8300401dc88cad23f5b4e4c1226f44a5aa696436a4026e456fe0e5d2f7f486e6"},
+ {file = "yarl-1.7.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:788713c2896f426a4e166b11f4ec538b5736294ebf7d5f654ae445fd44270832"},
+ {file = "yarl-1.7.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:fd547ec596d90c8676e369dd8a581a21227fe9b4ad37d0dc7feb4ccf544c2d59"},
+ {file = "yarl-1.7.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:737e401cd0c493f7e3dd4db72aca11cfe069531c9761b8ea474926936b3c57c8"},
+ {file = "yarl-1.7.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:baf81561f2972fb895e7844882898bda1eef4b07b5b385bcd308d2098f1a767b"},
+ {file = "yarl-1.7.2-cp38-cp38-win32.whl", hash = "sha256:ede3b46cdb719c794427dcce9d8beb4abe8b9aa1e97526cc20de9bd6583ad1ef"},
+ {file = "yarl-1.7.2-cp38-cp38-win_amd64.whl", hash = "sha256:cc8b7a7254c0fc3187d43d6cb54b5032d2365efd1df0cd1749c0c4df5f0ad45f"},
+ {file = "yarl-1.7.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:580c1f15500e137a8c37053e4cbf6058944d4c114701fa59944607505c2fe3a0"},
+ {file = "yarl-1.7.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3ec1d9a0d7780416e657f1e405ba35ec1ba453a4f1511eb8b9fbab81cb8b3ce1"},
+ {file = "yarl-1.7.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3bf8cfe8856708ede6a73907bf0501f2dc4e104085e070a41f5d88e7faf237f3"},
+ {file = "yarl-1.7.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1be4bbb3d27a4e9aa5f3df2ab61e3701ce8fcbd3e9846dbce7c033a7e8136746"},
+ {file = "yarl-1.7.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:534b047277a9a19d858cde163aba93f3e1677d5acd92f7d10ace419d478540de"},
+ {file = "yarl-1.7.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c6ddcd80d79c96eb19c354d9dca95291589c5954099836b7c8d29278a7ec0bda"},
+ {file = "yarl-1.7.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:9bfcd43c65fbb339dc7086b5315750efa42a34eefad0256ba114cd8ad3896f4b"},
+ {file = "yarl-1.7.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f64394bd7ceef1237cc604b5a89bf748c95982a84bcd3c4bbeb40f685c810794"},
+ {file = "yarl-1.7.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:044daf3012e43d4b3538562da94a88fb12a6490652dbc29fb19adfa02cf72eac"},
+ {file = "yarl-1.7.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:368bcf400247318382cc150aaa632582d0780b28ee6053cd80268c7e72796dec"},
+ {file = "yarl-1.7.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:bab827163113177aee910adb1f48ff7af31ee0289f434f7e22d10baf624a6dfe"},
+ {file = "yarl-1.7.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:0cba38120db72123db7c58322fa69e3c0efa933040ffb586c3a87c063ec7cae8"},
+ {file = "yarl-1.7.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:59218fef177296451b23214c91ea3aba7858b4ae3306dde120224cfe0f7a6ee8"},
+ {file = "yarl-1.7.2-cp39-cp39-win32.whl", hash = "sha256:1edc172dcca3f11b38a9d5c7505c83c1913c0addc99cd28e993efeaafdfaa18d"},
+ {file = "yarl-1.7.2-cp39-cp39-win_amd64.whl", hash = "sha256:797c2c412b04403d2da075fb93c123df35239cd7b4cc4e0cd9e5839b73f52c58"},
+ {file = "yarl-1.7.2.tar.gz", hash = "sha256:45399b46d60c253327a460e99856752009fcee5f5d3c80b2f7c0cae1c38d56dd"},
+]
diff --git a/poetry.toml b/poetry.toml
new file mode 100644
index 0000000..ab1033b
--- /dev/null
+++ b/poetry.toml
@@ -0,0 +1,2 @@
+[virtualenvs]
+in-project = true
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..0f883a3
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,49 @@
+[tool.poetry]
+name = "vk-to-tgm"
+version = "1.0.0"
+description = "An application that forwards wall posts and playlists from VK community to Telegram channel"
+license = "GPL-3.0-or-later"
+authors = ["Ilia Boyazitov"]
+readme = "README.md"
+
+[tool.poetry.dependencies]
+python = "^3.8"
+fastapi = "^0.75.2"
+vkbottle = "^4.2.2"
+uvicorn = {extras = ["standard"], version = "^0.17.6"}
+ffmpeg-python = "^0.2.0"
+gunicorn = "^20.1.0"
+celery = "^5.2.6"
+SQLAlchemy = "^1.4.35"
+Telethon = "^1.24.0"
+cryptg = "^0.2.post4"
+Pillow = "^9.1.0"
+aiohttp = "^3.8.1"
+hachoir = "^3.1.2"
+eyed3 = "^0.9.6"
+aiofiles = "^0.8.0"
+vkaudiotoken = {git = "https://github.com/Bizordec/vkaudiotoken-python.git"}
+
+[tool.poetry.dev-dependencies]
+black = "^22.3.0"
+flake8 = "^4.0.1"
+isort = "^5.10.1"
+flake8-bugbear = "^22.4.25"
+flake8-comprehensions = "^3.8.0"
+flake8-tidy-imports = "^4.6.0"
+sqlalchemy2-stubs = "^0.0.2-alpha.22"
+bandit = "^1.7.4"
+Babel = "^2.10.1"
+
+[tool.black]
+line-length = 120
+
+[tool.isort]
+profile = "black"
+line_length = 120
+multi_line_output = 3
+include_trailing_comma = true
+
+[build-system]
+requires = ["poetry-core>=1.0.0"]
+build-backend = "poetry.core.masonry.api"
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..597b73d
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,68 @@
+aiofiles==0.8.0; python_version >= "3.6" and python_version < "4.0"
+aiohttp==3.8.1; python_version >= "3.6"
+aiosignal==1.2.0; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and python_version >= "3.6"
+amqp==5.1.1; python_version >= "3.7"
+anyio==3.5.0; python_version >= "3.6" and python_full_version >= "3.6.2"
+asgiref==3.5.0; python_version >= "3.7"
+async-timeout==4.0.2; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and python_version >= "3.6"
+attrs==21.4.0; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and python_version >= "3.6"
+billiard==3.6.4.0; python_version >= "3.7"
+celery==5.2.6; python_version >= "3.7"
+certifi==2021.10.8; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version < "4"
+cffi==1.15.0; python_version >= "3.6"
+charset-normalizer==2.0.12; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and python_version >= "3.6" and python_version < "4"
+choicelib==0.1.5; python_version >= "3.7" and python_version < "4.0" and python_full_version >= "3.7.2" and python_full_version < "4.0.0"
+click-didyoumean==0.3.0; python_full_version >= "3.6.2" and python_full_version < "4.0.0" and python_version >= "3.7"
+click-plugins==1.1.1; python_version >= "3.7"
+click-repl==0.2.0; python_version >= "3.7"
+click==8.1.2; python_full_version >= "3.6.2" and python_full_version < "4.0.0" and python_version >= "3.7"
+colorama==0.4.4; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" and platform_system == "Windows" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.5.0" and platform_system == "Windows"
+coverage==5.5; python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" or python_full_version >= "3.5.0" and python_version < "4" and python_version >= "3.6"
+cryptg==0.2.post4; python_version >= "3.6"
+deprecation==2.1.0; python_version >= "3.6" and python_version < "4.0"
+eyed3==0.9.6; python_version >= "3.6" and python_version < "4.0"
+fastapi==0.75.2; python_full_version >= "3.6.1"
+ffmpeg-python==0.2.0
+filetype==1.0.13; python_version >= "3.6" and python_version < "4.0"
+frozenlist==1.3.0; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and python_version >= "3.7"
+future==0.18.2; python_version >= "2.6" and python_full_version < "3.0.0" or python_full_version >= "3.3.0"
+greenlet==1.1.2; python_version >= "3" and python_full_version < "3.0.0" and (platform_machine == "aarch64" or platform_machine == "ppc64le" or platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64" or platform_machine == "win32" or platform_machine == "WIN32") and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0") or python_version >= "3" and (platform_machine == "aarch64" or platform_machine == "ppc64le" or platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64" or platform_machine == "win32" or platform_machine == "WIN32") and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0") and python_full_version >= "3.5.0"
+gunicorn==20.1.0; python_version >= "3.5"
+h11==0.13.0; python_version >= "3.7"
+hachoir==3.1.3
+httptools==0.4.0; python_version >= "3.7" and python_full_version >= "3.5.0"
+idna==3.3; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and python_version >= "3.6" and (python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version < "4" and python_version >= "3.5")
+kombu==5.2.4; python_version >= "3.7"
+multidict==6.0.2; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and python_version >= "3.7"
+packaging==21.3; python_version >= "3.6" and python_version < "4.0"
+pillow==9.1.0; python_version >= "3.7"
+prompt-toolkit==3.0.29; python_full_version >= "3.6.2" and python_version >= "3.7"
+pyaes==1.6.1; python_version >= "3.5"
+pyasn1==0.4.8; python_version >= "3.6" and python_version < "4"
+pycparser==2.21; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
+pydantic==1.9.0; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
+pyparsing==3.0.8; python_version >= "3.6" and python_version < "4.0" and python_full_version >= "3.6.8"
+python-dotenv==0.20.0; python_version >= "3.7"
+pytz==2022.1; python_version >= "3.7"
+pyyaml==6.0; python_version >= "3.7"
+requests==2.27.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version < "4"
+rsa==4.8; python_version >= "3.6" and python_version < "4"
+six==1.16.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.3.0" and python_version >= "3.7"
+sniffio==1.2.0; python_version >= "3.6" and python_full_version >= "3.6.2"
+sqlalchemy==1.4.35; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.6.0")
+starlette==0.17.1; python_version >= "3.6" and python_full_version >= "3.6.1"
+telethon==1.24.0; python_version >= "3.5"
+toml==0.10.2; python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" or python_full_version >= "3.5.0" and python_version < "4" and python_version >= "3.6"
+typing-extensions==4.2.0; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and python_version >= "3.7" and python_version < "4.0"
+urllib3==1.26.9; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version < "4"
+uvicorn==0.17.6; python_version >= "3.7"
+uvloop==0.16.0; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.7"
+vbml==1.1.post1; python_version >= "3.7" and python_version < "4.0" and python_full_version >= "3.7.2" and python_full_version < "4.0.0"
+vine==5.0.0; python_version >= "3.7"
+vkaudiotoken @ git+https://github.com/Bizordec/vkaudiotoken-python.git@master ; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0" and python_version < "4")
+vkbottle-types==5.131.146.1; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
+vkbottle==4.2.2; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
+watchgod==0.7; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and python_version >= "3.7"
+wcwidth==0.2.5; python_full_version >= "3.6.2" and python_version >= "3.7"
+websockets==10.3; python_version >= "3.7"
+yarl==1.7.2; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and python_version >= "3.6"
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..78b33a9
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,3 @@
+[flake8]
+max-line-length = 120
+ban-relative-imports = true
diff --git a/setup/configs/vtt-celery.conf b/setup/configs/vtt-celery.conf
new file mode 100644
index 0000000..4fc6ada
--- /dev/null
+++ b/setup/configs/vtt-celery.conf
@@ -0,0 +1,38 @@
+# Name of nodes to start
+# here we have a single node
+# CELERYD_NODES="w1"
+# or we could have three nodes:
+# CELERYD_NODES="w1 w2 w3"
+CELERYD_NODES="vtt-worker-wall vtt-worker-pl vtt-worker-dbc -Q:1 vtt-wall -Q:2 vtt-playlist -Q:3 celery"
+
+# Absolute or relative path to the 'celery' command:
+# CELERY_BIN="/usr/local/bin/celery"
+# CELERY_BIN="/virtualenvs/def/bin/celery"
+CELERY_BIN="/srv/vk-to-tgm/.venv/bin/celery"
+
+# App instance to use
+# comment out this line if you don't use an app
+# CELERY_APP="proj"
+# or fully qualified:
+CELERY_APP="app.celery_worker"
+
+# How to call manage.py
+CELERYD_MULTI="multi"
+
+# Extra command-line arguments to the worker
+CELERYD_OPTS="--time-limit=3600 --pool=solo"
+
+# - %n will be replaced with the first part of the nodename.
+# - %I will be replaced with the current child process index
+# and is important when using the prefork pool to avoid race conditions.
+CELERYD_PID_FILE="logs/run/%n.pid"
+CELERYD_LOG_FILE="logs/%n%I.log"
+CELERYD_LOG_LEVEL="INFO"
+
+# If enabled pid and log directories will be created if missing,
+# and owned by the userid/group configured.
+CELERY_CREATE_DIRS=1
+
+# you may wish to add these options for Celery Beat
+CELERYBEAT_PID_FILE="logs/run/vtt-dbc-scheduler.pid"
+CELERYBEAT_LOG_FILE="logs/vtt-dbc-scheduler.log"
diff --git a/setup/nginx/vtt-cb-receiver.conf b/setup/nginx/vtt-cb-receiver.conf
new file mode 100644
index 0000000..72d46a7
--- /dev/null
+++ b/setup/nginx/vtt-cb-receiver.conf
@@ -0,0 +1,13 @@
+server {
+ # Add SSL client certificate
+ # ssl_client_certificate ;
+ # ssl_verify_client on;
+ # ssl_verify_depth 0;
+
+ # Add domain server name
+ # server_name ;
+ location / {
+ include proxy_params;
+ proxy_pass http://127.0.0.1:8000;
+ }
+}
diff --git a/setup/ssl/.gitignore b/setup/ssl/.gitignore
new file mode 100644
index 0000000..bed4b5e
--- /dev/null
+++ b/setup/ssl/.gitignore
@@ -0,0 +1,3 @@
+*.crt
+*.key
+*.p12
diff --git a/setup/ssl/README.md b/setup/ssl/README.md
new file mode 100644
index 0000000..157f482
--- /dev/null
+++ b/setup/ssl/README.md
@@ -0,0 +1,20 @@
+# Client SSL certificate setup
+
+1. Setup server SSL certificate. [Certbot](https://certbot.eff.org/) can help you with that;
+2. Create client self-signed certificate (will work 365 days):
+```bash
+openssl req -newkey rsa:2048 -sha256 -nodes -keyout vkapi.key -x509 -days 365 -out vkapi.crt -subj "/C=RU/ST=Saint Petersburg/L=Saint Petersburg/O=VK API Club/CN=vkapi"
+
+openssl pkcs12 -export -in vkapi.crt -name "Test" -descert -inkey vkapi.key -out vkapi.p12 -passout pass:
+```
+3. Go to your VK community page, `"Manage" > "Settings" > "API usage" > "Callback API" > "Server settings"` and upload `vkapi.p12` file;
+4. Add following lines to the nginx config:
+```
+ssl_client_certificate ;
+ssl_verify_client on;
+ssl_verify_depth 0;
+```
+5. Restart nginx:
+```bash
+sudo service nginx restart
+```
diff --git a/setup/ssl/renew.sh b/setup/ssl/renew.sh
new file mode 100755
index 0000000..2aebb60
--- /dev/null
+++ b/setup/ssl/renew.sh
@@ -0,0 +1,3 @@
+openssl req -newkey rsa:2048 -sha256 -nodes -keyout vkapi.key -x509 -days 365 -out vkapi.crt -subj "/C=RU/ST=Saint Petersburg/L=Saint Petersburg/O=VK API Club/CN=vkapi"
+
+openssl pkcs12 -export -in vkapi.crt -name "Test" -descert -inkey vkapi.key -out vkapi.p12 -passout pass:
diff --git a/setup/systemd/vtt-cb-receiver.service b/setup/systemd/vtt-cb-receiver.service
new file mode 100644
index 0000000..91a8b0c
--- /dev/null
+++ b/setup/systemd/vtt-cb-receiver.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=VK callback reciever for VK to Telegram forwarding
+After=network.target
+After=rabbitmq-server.service
+Wants=rabbitmq-server.service
+
+[Service]
+User=vtt-user
+Group=vtt-user
+WorkingDirectory=/srv/vk-to-tgm
+Environment="VTT_VENV=/srv/vk-to-tgm/.venv"
+ExecStart=/bin/sh -c '${VTT_VENV}/bin/gunicorn -w 1 -k app.gunicorn_worker.MyUvicornWorker app.main:app'
+
+[Install]
+WantedBy=multi-user.target
diff --git a/setup/systemd/vtt-dbc-scheduler.service b/setup/systemd/vtt-dbc-scheduler.service
new file mode 100644
index 0000000..4eba07f
--- /dev/null
+++ b/setup/systemd/vtt-dbc-scheduler.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=VK to Telegram database cleanup scheduler service
+After=network.target
+
+[Service]
+Type=simple
+User=vtt-user
+Group=vtt-user
+EnvironmentFile=/etc/default/vtt-celery.conf
+WorkingDirectory=/srv/vk-to-tgm
+ExecStart=/bin/sh -c '${CELERY_BIN} -A ${CELERY_APP} beat \
+ --pidfile=${CELERYBEAT_PID_FILE} \
+ --logfile=${CELERYBEAT_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL}'
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
diff --git a/setup/systemd/vtt-tgm-bot.service b/setup/systemd/vtt-tgm-bot.service
new file mode 100644
index 0000000..10b19fb
--- /dev/null
+++ b/setup/systemd/vtt-tgm-bot.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Telegram bot for forwarding wall posts and playlists from VK
+After=network.target
+After=rabbitmq-server.service
+Wants=rabbitmq-server.service
+
+[Service]
+User=vtt-user
+Group=vtt-user
+WorkingDirectory=/srv/vk-to-tgm
+Environment="VTT_VENV=/srv/vk-to-tgm/.venv"
+ExecStart=/bin/sh -c '${VTT_VENV}/bin/python -m app.bot.main'
+
+[Install]
+WantedBy=multi-user.target
diff --git a/setup/systemd/vtt-workers.service b/setup/systemd/vtt-workers.service
new file mode 100644
index 0000000..0538622
--- /dev/null
+++ b/setup/systemd/vtt-workers.service
@@ -0,0 +1,26 @@
+[Unit]
+Description=VK to Telegram forwarding service
+After=network.target
+After=rabbitmq-server.service
+Wants=rabbitmq-server.service
+Wants=vtt-dbc-scheduler.service
+
+[Service]
+Type=forking
+User=vtt-user
+Group=vtt-user
+EnvironmentFile=/etc/default/vtt-celery.conf
+WorkingDirectory=/srv/vk-to-tgm
+ExecStart=/bin/sh -c '${CELERY_BIN} -A $CELERY_APP multi start $CELERYD_NODES \
+ --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} \
+ --loglevel="${CELERYD_LOG_LEVEL}" $CELERYD_OPTS'
+ExecStop=/bin/sh -c '${CELERY_BIN} multi stopwait $CELERYD_NODES \
+ --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} \
+ --loglevel="${CELERYD_LOG_LEVEL}"'
+ExecReload=/bin/sh -c '${CELERY_BIN} -A $CELERY_APP multi restart $CELERYD_NODES \
+ --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} \
+ --loglevel="${CELERYD_LOG_LEVEL}" $CELERYD_OPTS'
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file
diff --git a/tunnel/app.js b/tunnel/app.js
new file mode 100644
index 0000000..9e950ca
--- /dev/null
+++ b/tunnel/app.js
@@ -0,0 +1,22 @@
+const localtunnel = require('localtunnel');
+const fs = require('fs');
+const { parse, stringify } = require('envfile');
+
+
+(async () => {
+ const tunnel = await localtunnel({ port: 8000, subdomain: 'mtest' });
+
+ // the assigned public url for your tunnel
+ // i.e. https://abcdefgjhij.localtunnel.me
+ console.log(tunnel.url);
+
+ const sourcePath = '../.env'
+ const data = fs.readFileSync(sourcePath, 'utf8');
+ const parsedFile = parse(data);
+ parsedFile.SERVER_URL = tunnel.url + '/';
+ fs.writeFileSync(sourcePath, stringify(parsedFile))
+
+ tunnel.on('close', () => {
+ console.warn('WARNING: Tunnel closed!');
+ });
+})();
\ No newline at end of file
diff --git a/tunnel/package-lock.json b/tunnel/package-lock.json
new file mode 100644
index 0000000..6e6c730
--- /dev/null
+++ b/tunnel/package-lock.json
@@ -0,0 +1,168 @@
+{
+ "name": "tunnel",
+ "version": "1.0.0",
+ "lockfileVersion": 1,
+ "requires": true,
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
+ "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg=="
+ },
+ "ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "requires": {
+ "color-convert": "^2.0.1"
+ }
+ },
+ "axios": {
+ "version": "0.21.1",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz",
+ "integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==",
+ "requires": {
+ "follow-redirects": "^1.10.0"
+ }
+ },
+ "cliui": {
+ "version": "7.0.4",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
+ "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
+ "requires": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^7.0.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
+ },
+ "debug": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz",
+ "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
+ },
+ "envfile": {
+ "version": "6.17.0",
+ "resolved": "https://registry.npmjs.org/envfile/-/envfile-6.17.0.tgz",
+ "integrity": "sha512-RnhtVw3auDZeeh5VtaNrbE7s6Kq8BoRtGIzcbMpMsJ+wIpRgs5jiDG4gQjW+vfws5QPlizE57/fUU0Tj6Nrs8A=="
+ },
+ "escalade": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
+ "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw=="
+ },
+ "follow-redirects": {
+ "version": "1.14.2",
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.2.tgz",
+ "integrity": "sha512-yLR6WaE2lbF0x4K2qE2p9PEXKLDjUjnR/xmjS3wHAYxtlsI9MLLBJUZirAHKzUZDGLxje7w/cXR49WOUo4rbsA=="
+ },
+ "get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="
+ },
+ "localtunnel": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/localtunnel/-/localtunnel-2.0.1.tgz",
+ "integrity": "sha512-LiaI5wZdz0xFkIQpXbNI62ZnNn8IMsVhwxHmhA+h4vj8R9JG/07bQHWwQlyy7b95/5fVOCHJfIHv+a5XnkvaJA==",
+ "requires": {
+ "axios": "0.21.1",
+ "debug": "4.3.1",
+ "openurl": "1.1.1",
+ "yargs": "16.2.0"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ },
+ "openurl": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/openurl/-/openurl-1.1.1.tgz",
+ "integrity": "sha1-OHW0sO96UsFW8NtB1GCduw+Us4c="
+ },
+ "require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I="
+ },
+ "string-width": {
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz",
+ "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==",
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
+ "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
+ "requires": {
+ "ansi-regex": "^5.0.0"
+ }
+ },
+ "wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "requires": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ }
+ },
+ "y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="
+ },
+ "yargs": {
+ "version": "16.2.0",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
+ "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
+ "requires": {
+ "cliui": "^7.0.2",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.0",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^20.2.2"
+ }
+ },
+ "yargs-parser": {
+ "version": "20.2.9",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
+ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w=="
+ }
+ }
+}
diff --git a/tunnel/package.json b/tunnel/package.json
new file mode 100644
index 0000000..f0bb788
--- /dev/null
+++ b/tunnel/package.json
@@ -0,0 +1,15 @@
+{
+ "name": "tunnel",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
+ "scripts": {
+ "start": "node app.js"
+ },
+ "author": "",
+ "license": "ISC",
+ "dependencies": {
+ "envfile": "^6.17.0",
+ "localtunnel": "^2.0.1"
+ }
+}
diff --git a/uninstall.sh b/uninstall.sh
new file mode 100755
index 0000000..68801bc
--- /dev/null
+++ b/uninstall.sh
@@ -0,0 +1,57 @@
+#!/bin/bash
+
+function prompt_text {
+ local prompt=$1
+ local regex=$2
+ local default=$3
+
+ if [ -n "$default" ]; then
+ prompt="$prompt [$default]"
+ fi
+
+ while true; do
+ read -rp "-> $prompt: " ANSWER
+ if echo "$ANSWER" | grep -qP "$regex"; then
+ ret_val=$ANSWER
+ break
+ elif [ "$ANSWER" == "" ] && [ -n "$default" ]; then
+ ret_val=$default
+ break
+ else
+ echo Invalid input, try again...
+ fi
+ done
+}
+
+prompt_text "Enter installation path to delete" "^/.+$" "/srv/vk-to-tgm"
+INSTALL_PATH=$ret_val
+
+prompt_text "Enter app's owner" "^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\$)$" "vtt-user"
+VTT_USER=$ret_val
+
+echo "Stopping services..."
+sudo systemctl stop vtt-cb-receiver vtt-workers vtt-dbc-scheduler vtt-tgm-bot
+sudo systemctl disable vtt-cb-receiver vtt-workers vtt-dbc-scheduler vtt-tgm-bot
+
+echo "Deleting service configs..."
+sudo rm -f "/etc/systemd/system/vtt-cb-receiver.service" \
+ "/etc/systemd/system/vtt-workers.service" \
+ "/etc/systemd/system/vtt-dbc-scheduler.service" \
+ "/etc/systemd/system/vtt-tgm-bot.service" \
+ "/etc/default/vtt-workers.conf"
+
+sudo systemctl daemon-reload
+
+echo "Deleting '$INSTALL_PATH'..."
+sudo rm -rf "$INSTALL_PATH"
+
+echo "Deleting user '$VTT_USER'..."
+sudo userdel "$VTT_USER"
+
+if [ -f /etc/nginx/sites-enabled/vtt-cb-receiver.conf ]; then
+ echo "Deleting Nginx site config..."
+ sudo rm /etc/nginx/sites-enabled/vtt-cb-receiver.conf
+ sudo systemctl reload nginx
+fi
+
+echo "Uninstallation completed."
diff --git a/vtt-cli.sh b/vtt-cli.sh
new file mode 100755
index 0000000..f949cc6
--- /dev/null
+++ b/vtt-cli.sh
@@ -0,0 +1,88 @@
+#!/bin/bash
+
+cli_help() {
+ cli_name=${0##*/}
+ echo "
+vk-to-tgm CLI
+Usage: ./$cli_name [command]
+Commands:
+ receiver, r Run callback receiver
+ bot, b Run Telegram bot
+ wall_worker, ww Run Celery wall worker
+ playlist_worker, pw Run Celery playlist worker
+ dbcleanup_worker, dw Run Celery db cleanup worker
+ local_tunnel, lt Run local tunnel
+ sign_in, s Create VK tokens and Telegram sessions
+ upd_locale, ul Update locales
+ * Help
+"
+ exit 1
+}
+
+venv() {
+ if [ -d .venv ]; then
+ if command -v python3 &> /dev/null; then
+ # shellcheck source=/dev/null
+ source .venv/bin/activate
+ else
+ echo "Python3 not installed!" || exit 1
+ fi
+ else
+ if command -v poetry &> /dev/null; then
+ poetry install
+ # shellcheck source=/dev/null
+ source .venv/bin/activate
+ elif command -v python3 &> /dev/null; then
+ python3 -m venv .venv
+ # shellcheck source=/dev/null
+ source .venv/bin/activate
+ python3 -m pip install wheel
+ python3 -m pip install -r requirements.txt
+ else
+ echo "Python3 not installed!" || exit 1
+ fi
+ fi
+}
+
+case $1 in
+ receiver|r)
+ venv
+ uvicorn app.main:app --port 8000 --reload --log-config app/logging_config.yaml
+ ;;
+ bot|b)
+ venv
+ python3 -m app.bot.main
+ ;;
+ wall_worker|ww)
+ venv
+ celery -A app.celery_worker worker -n vtt-worker-wall@%%h -Q vtt-wall --pool=solo --loglevel=INFO
+ ;;
+ playlist_worker|pw)
+ venv
+ celery -A app.celery_worker worker -n vtt-worker-pl@%%h -Q vtt-playlist --pool=solo --loglevel=INFO
+ ;;
+ dbcleanup_worker|dw)
+ venv
+ celery -A app.celery_worker worker -B -n vtt-worker-dbc@%%h -Q celery --pool=solo --loglevel=INFO
+ ;;
+ local_tunnel|lt)
+ cd tunnel/ || exit 1
+ if [ ! -f node_modules/localtunnel/localtunnel.js ]; then
+ npm install
+ fi
+ npm start
+ ;;
+ sign_in|s)
+ venv
+ python3 -m app.sign_in
+ ;;
+ upd_locale|ul)
+ venv
+ pybabel extract --mapping babel.cfg -o locale/base.pot app/
+ pybabel update -l en -i locale/base.pot -D vtt -d locale/
+ pybabel update -l ru -i locale/base.pot -D vtt -d locale/
+ pybabel compile -D vtt -d locale/
+ ;;
+ *)
+ cli_help
+esac
\ No newline at end of file