Text Transformations - adityathebe/telegramForwarder GitHub Wiki

This bot allows you to perform basic text transformation.

Example:

You can set up a transformation, for a redirection, to change the text NodeJS to Golang. And when the source sends a text containing the word NodeJS it'll be replaced with Golang.

I love Nodejs
I love Golang

You're not limited to just words, phrases are acceptable too. However, this command looks for exact text match so it is case-sensitive

Available Commands

/transform

Each transformation is attached to a redirection. So to add a new transformation, you'll need a redirection id.

/transform 1
nodejs
golang

Due to some complexities, this command requires the transformations texts to be separated by newlines. The first line is basically the command and the redirection id. The second line is the text that you want to replace and the third line is the text that you want to replace with.

/transforms

To list all the transformations of a given redirection you can use the command

/transforms 1

/transformremove

Each transformation has a unique id. When you create a new transformation, the transformation id will be sent to you. Or you can also use the /transforms command to see the transformation id.

To delete a transformation you can use the command

/transformremove 123