зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-07 11:25:52 +03:00
Merge pull request #157 from AlexVPopov/table-of-contents
Add a table of contents to README
Этот коммит содержится в:
26
README.md
26
README.md
@@ -29,6 +29,30 @@ to generate new rails app in seconds.
|
|||||||
|
|
||||||
See examples and cookbook in [the wiki](https://github.com/telegram-bot-rb/telegram-bot/wiki).
|
See examples and cookbook in [the wiki](https://github.com/telegram-bot-rb/telegram-bot/wiki).
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
|
* [Installation](#installation)
|
||||||
|
* [Usage](#usage)
|
||||||
|
* [Configuration](#configuration)
|
||||||
|
* [Configuration in Rails app](#configuration-in-rails-app)
|
||||||
|
* [Client](#client)
|
||||||
|
* [Typed responses](#typed-responses)
|
||||||
|
* [Controller](#controller)
|
||||||
|
* [Reply helpers](#reply-helpers)
|
||||||
|
* [Optional typecasting](#optional-typecasting)
|
||||||
|
* [Session](#session)
|
||||||
|
* [Message context](#message-context)
|
||||||
|
* [Callback queries](#callback-queries)
|
||||||
|
* [Routes in Rails app](#routes-in-rails-app)
|
||||||
|
* [Processing updates](#processing-updates)
|
||||||
|
* [Development & Debugging](#development--debugging)
|
||||||
|
* [Testing](#testing)
|
||||||
|
* [Deployment](#deployment)
|
||||||
|
* [Async mode](#async-mode)
|
||||||
|
* [Limitations](#limitations)
|
||||||
|
* [Development](#development)
|
||||||
|
* [Contributing](#contributing)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Add this line to your application's Gemfile:
|
Add this line to your application's Gemfile:
|
||||||
@@ -397,7 +421,7 @@ telegram_webhook TelegramAuctionController, :auction
|
|||||||
telegram_webhook TelegramController, as: :custom_telegram_webhook
|
telegram_webhook TelegramController, as: :custom_telegram_webhook
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Processesing updates
|
#### Processing updates
|
||||||
|
|
||||||
To process update with controller call `.dispatch(bot, update)` on it.
|
To process update with controller call `.dispatch(bot, update)` on it.
|
||||||
There are several options to run it automatically:
|
There are several options to run it automatically:
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user