Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xiaomengxinx/telegram-onetext-bot

A telegram bot to create onetext image
https://github.com/xiaomengxinx/telegram-onetext-bot

hacktoberfest telegram telegram-bot vercel

Last synced: 2 months ago
JSON representation

A telegram bot to create onetext image

Awesome Lists containing this project

README

        

# Telegram OneText Bot

A telegram bot to create onetext image.

Thanks to [OneText_For_Android](https://github.com/lz233/OneText_For_Android)

Demo: [OneText Bot](https://t.me/one_text_bot)

Built-in font: [LxgwWenKai](https://github.com/lxgw/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](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FXiaoMengXinX%2FTelegram-OneText-bot)

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

```
https://api.telegram.org/bot/setWebhook?url=https:///
```

Then you can use your bot on telegram.