Skip to content

Instantly share code, notes, and snippets.

View EAimTY's full-sized avatar
🏠
Working from home

EAimTY

🏠
Working from home
View GitHub Profile
@EAimTY
EAimTY / ocr_telegram_bot.rs
Last active December 16, 2023 08:42
ocr_telegram_bot
#![feature(try_blocks)]
use anyhow::Result;
use bytes::BufMut;
use futures_util::{future::BoxFuture, StreamExt};
use leptess::LepTess;
use std::{
collections::HashMap,
fmt::{Display, Formatter, Result as FmtResult},
sync::Arc,