Telbot
Telbot provides telegram bot types and api wrappers.
Specifically, telbot now supports:
- telbot-types: basic telegram types / requests / responses
- telbot-cf-worker: api wrapper for cloudflare workers
- get-me request example
- echo bot example
Pathetic little Telegram bot that fetches information from Reddit posts(with gif, image(post with single image) and video)
AmimeWatch A Telegram bot to watch animes. Re-written version of AmimeWatch in Rust. Preparing Configuration Create a file named config.toml and fill
TeleGPT API Docs | Releases | Twitter An out-of-box ChatGPT bot for Telegram. TeleGPT is a Telegram bot based on teloxide framework and async_openai.
TeleGPT API Docs | Releases | Twitter An out-of-box ChatGPT bot for Telegram. TeleGPT is a Telegram bot based on teloxide framework and async_openai.
A customizable Telegram bot with a ChatGPT (or GPT4, bring your own API key) backend. You can configure the bot’s context and prompt in template settings.
Telegram Ngrok Bot A simple bot to fetch the running tunnels from ngrok api. Prerequisits Ngrok agent should be running. Configuration Ngrok config ve
matrix-openai-bot Matrix bot inspired by Shirt Bot. Usage Run the bot after building it or grabbing the latest release $ matrix-openai-bot Edit the ge
Arcadia Rewrite of the Discord Bot used for Managing the Infinity Bot List Servers. Contributing Always run fmt.sh before making a Pull Request! MacOS
generic-str The one true string type in Rust! This project intends to be a proof-of-concept for an idea I had a few months back. There is lots of unsa
Hello,
When I try to send a file with a caption it is surrounded by "
and if it contain the character "
it is send as \"
.
Here a minimal example:
use telbot_ureq::types::message::SendDocument;
use telbot_ureq::types::chat::ChatId;
use telbot_ureq::types::file::InputFile;
use telbot_ureq::Api;
fn main() {
let data: Vec<u8> = "exemple".to_string().into_bytes();
let caption = "exemple \" exemple";
let api = Api::new("...".to_string());
let chat_id: ChatId = 123456789i64.into();
let file = InputFile {
name: "test.txt".to_string(),
data: data,
mime: "text/plain".to_string(),
};
api
.send_file(
&SendDocument::new(chat_id, file)
.with_caption(caption)
)
.expect("Error while sending document to Telegram");
}
And here what I get in Telegram:
From what I can see the problem is that the send_file
method use serde_json::to_value but the body is not send as json (but as multipart) so the text is json escaped but Telegram do not decode it.
PS: I'm using the main version from git telbot-ureq = { git = "https://github.com/kiwiyou/telbot" }
rodosol-telegram-bot Add this bot to your contacts list This bot is a quick scraper that gets the pictures from the rodosol "De olho na via" feature a
Telegram bot in Rust A fun Telegram bot made using Rust language.
Maldness Bot This is a Telegram bot I'm working on in my free time to learn Rust. Building docker build -t . should be enough.
AurSearchBot A Telegram Inline Search Bot Written in Rust Introduction Telegram Bot that can search AUR ( Arch User Repository ) in inline mode. This
An Elegant Rust Client for Telegram Bot API crates.io • docs.rs Table of contents Introduction Key Features Installation Getting Started Documentation
tgbot-nochanmsg By Asuna Right Control When creating your bot from botfather, it's not bad to disable privacy mode, because it needs to access the mes
Knight-Bot Table of Contents About Support chat Installation Setting up your environment Build manually Commands Commands on TODO list Find this bot A
Firefly Telegram Bot Fireflies are free, so beautiful. (Les lucioles sont libres, donc belles.) ― Charles de Leusse, Les Contes de la nuit This is a s
cf-workers-telegram-bot-template Usage This template starts you off with a src/lib.rs file, acting as an entrypoint for requests hitting your Worker.
@twt_2_tg_bot Telegram bot that zhuzh shared Twitter content Text converter Some tweets may contain line breaks or even dialogs. Such tweets are barel