Skip to main content

Imposter bot

Imposter is a telegram bot which creates a post with title and message with and index to track that post, in telegram channel or group in which this bot has been added.


List of Keys and Ids which is needed to work with this bot are:

  1. A group or a channel
    You all know how to create a group or a channel, we would need channel id or group id.

  2. A telegram bot
    To create a telegram bot you need botfather, after creation of Bot there would be an auth key for bot we would be needing that.


How it works?


Imposter is bascially a kind of interface given to some of the endpoints of Telegram Bot Api, it takes data from users and put it in perticular format in telegram Channels or groups.

Step 1: Print title and message in telegram channel (Done)

To do this sendMessage method is getting used, interface takes bot auth key, channel id, a title and message from user.

Step 2: Create or Append Index

There is a bit of processing in this situation, it has been assumed that there are no index created by any user and only that index has been pinned to that channel.

if there is no pinned message it will create a new index

Now it takes the title and link of the sent message and add title as hyperlink, linked to the message.

To get the pinned message getChat method is being used. \

If there is no pin, to create index sendMessage and to pin that index pinChatMessage are being used.\

if there is a pinned message, then it checks if it is index or not it it's not an index message then editMessage.

Metadata

Release files for im-botposter 0.0.4

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

Source distribution (sdist)

Source distribution for im-botposter 0.0.4
File Size Uploaded
im_botposter-0.0.4.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for im-botposter 0.0.4
File Interpreter ABI Platform
im_botposter-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / im_botposter-0.0.4.tar.gz

Download URL im_botposter-0.0.4.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f032f1e6117e0a8dbdc079021a238c7deda792474a82ce2de29e7e6090e76a8c
BLAKE2b-256 checksum
How to use checksums
42b2d24a6a52987295190b2ad7d30303c9b836ece48d9d780f6457b602180677
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / im_botposter-0.0.4-py3-none-any.whl

Download URL im_botposter-0.0.4-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89f6a34bbf2978827b09c7fc5b8bcc400fcc29d28aad071bf164a2fafd056325
BLAKE2b-256 checksum
How to use checksums
758f403bfbb1fe531f755dff4954f59287ab2006d9715fe0cd0f2601c87addc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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