Telegram-OneText-bot

module
v0.0.0-...-8df10ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2023 License: GPL-3.0

README

Telegram OneText Bot

A telegram bot to create onetext image.

Thanks to OneText_For_Android

Demo: OneText Bot

Built-in font: LxgwWenKai

Usage

On telegram group or private chat, send listed command to the bot:

/onetext - Get an onetext image

/quote - Reply to a message and quote it

/custom - Create an onetext image with your own text

For example, send the following message to the bot:

/custom Some\nrandom\ntext
Author
Source
https://example.com/

Then you will get an onetext image like this:

Deploy

Notice: The Root Directory need to be set as "bot".

Deploy with Vercel

After your deploying on vercel, set the webhook url of the bot by requesting bot api like this:

https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook?url=https://<YOUR_DEPLOYMENT_URL>/<YOUR_BOT_TOKEN>

Then you can use your bot on telegram.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL