# vaegram > vaegram is a Rust client library for Telegram, speaking MTProto directly as a user account or as a > bot, with an optional Bot API mode. This is the guide. API reference: . ## Introduction and setup - [Introduction](/docs/introduction.md): what vaegram is, MTProto vs the Bot API, and which pages to read first. - [Installation](/docs/installation.md): add the crate, pick features, get an api_id and api_hash. - [Your first bot](/docs/first-bot.md): a bot that answers /start, built from an empty project. - [Your first user account](/docs/first-user-account.md): log in as a person and send a message to yourself. ## Basics - [Sending messages](/docs/sending-messages.md): text, formatting, replies, edits, and the return value of a send. - [Receiving updates](/docs/receiving-updates.md): handlers, `run`, the update loop, and filtering what you get. - [Filters](/docs/filters.md): pick updates with `filters::`, and combine them with `&`, `|` and `!`. - [Commands](/docs/commands.md): parse `/command` text, and derive an enum from it with `#[derive(BotCommands)]`. - [Keyboards](/docs/keyboards.md): inline and reply keyboards with the chained builder, callbacks and answer handlers. - [Files and media](/docs/files-and-media.md): send photos, documents and albums from a path, bytes or an id. - [Errors](/docs/errors.md): `Result`, `Error`, Telegram's `RpcError`, and how to retry. ## Bot API and routers - [Bot API mode vs MTProto](/docs/bot-api-vs-mtproto.md): the two transports in one client, what each can and cannot do. - [Routers](/docs/routers.md): group handlers into modules, nest them, and share values and errors. - [Middleware](/docs/middleware.md): run code before filters (outer) and around handlers (inner), and stop an update. ## Dialogues, conversations and testing - [Dialogues](/docs/dialogues.md): multi-step forms that survive a restart, with typed state and storage. - [Conversations](/docs/conversations.md): ask several questions in one async function with `Conversation`. - [Testing](/docs/testing.md): drive the handlers with the test kit and assert on what the bot sent. ## Deployment and migration - [Deployment](/docs/deployment.md): polling, webhooks, graceful shutdown and running more than one instance. - [Flood limits](/docs/flood-limits.md): vaegram's per-chat limit, Telegram's flood waits, and how to stay under both. - [Sessions and storage](/docs/sessions-and-storage.md): the session file, session strings, and the storage engines. - [Migration 0.3 to 0.4](/docs/migration-03-to-04.md): every breaking change from 0.3.0, with the fix for each.