1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-06 19:15:50 +03:00

Support (edited_)channel_post updates, add api methods from 2.3, 2.3.1

Этот коммит содержится в:
Max Melentiev
2016-12-09 13:20:18 +03:00
родитель 1a2ac0dd83
Коммит 88178113d7
6 изменённых файлов: 27 добавлений и 14 удалений

Просмотреть файл

@@ -139,9 +139,9 @@ module Telegram
# Helper for asserting message is sent. Note that options are checked
# with `hash_including`. For strict checks use #make_telegram_request.
def send_telegram_message(bot, text = nil, options = {})
description = "send telegram message #{text.inspect}"
text = a_string_matching(text) if text.is_a?(Regexp)
options = options.merge(text: text) if text
description = "send telegram message #{text.inspect}"
MakeTelegramRequest.new(bot, :sendMessage, description: description).
with(hash_including(options))
end