Skip to main content

Forwarding bot

Downloads Downloads Downloads

PyPI version Python versions Wheel status License

Code checks Pypi publish

Not really scalable, but straightforward one-way VK->TG message forwarding bot

Forward your VK conversation messages to TG

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

pre-commit usage is highly recommended

install hooks via pre-commit install -t=pre-commit -t=pre-push

License

MIT

Documentation

  1. Installation
    1. From PyPi
    2. From GitHub
    3. Extras
  2. Config
    1. Config source priority
    2. Command-line arguments
    3. INI configs
    4. Environment variables
      1. Using environment variables

Installation

From PyPi

pip install forwarding-bot

From GitHub

git clone https://github.com/dhvcc/forwarding-bot.git
cd forwarding-bot
pip install .

Extras

You can install extra dependencies, such as speedups or dev

pip install forwarding-bot[dev]
# You must be in a directory where setup.py is located
pip install .[speedups]
pip install forwarding-bot[speedups,dev]

Config

Config argument sources are prioritized

  1. Command-line arguments
  2. Local .forwarding-bot config
  3. Environment variables
  4. Global {HOME}/.forwarding-bot config

Command-line arguments

To view help on cli arguments you can run forwarding-bot --help

INI configs

Every argument is optional if config and will be grabbed from other source if not present The syntax for config is the following:

[forwarding-bot]
BOT_TOKEN =
USER_TOKEN =
SOURCE_ID =
DESTINATION_ID =

Local/global INI configs must be named .forwarding-bot

Global config must be located in your home folder

Environment variables

Env vars should be prefixed with FORWARDING_BOT_, for example, FORWARDING_BOT_BOT_TOKEN

Using environment variables

Windows

Linux

Metadata

Release files for forwarding-bot 2.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for forwarding-bot 2.5.2
File Interpreter ABI Platform
forwarding_bot-2.5.2-py3-none-any.whl Python 3 none any Details

Release files / forwarding_bot-2.5.2-py3-none-any.whl

Download URL forwarding_bot-2.5.2-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad9fb2497f1166c55cf35588c40efe8f9bf4938de083ecd00e9a7f19c991eb4b
BLAKE2b-256 checksum
How to use checksums
caf896914c15d79e2fbcfb22c8e7f79ec246f16bfa800b40fb91f569f8435081
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

2.5.2 This release

1 release file

2.5.1

1 release file

2.5

1 release file

2.4

1 release file

2.2

1 release file

2.1

1 release file

2.0

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page