Sha256: 2b6b02af42473a9fd30676669acc41f79543267ebe3e6be0ab168fe6ff5c55cd
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
require 'telegram/url' require 'telegram/reply/request' module Telegram module Reply def forward_message(chat_id: @chat.id, from_chat_id:, message_id:, **options) url = Telegram::URL.new(@telegram_bot_token).forward_message params = { chat_id: chat_id, from_chat_id: from_chat_id, message_id: message_id, disable_notification: options[:disable_notification].presence } Telegram::Reply::SEND(url: url, params: params) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tg-bot-0.0.5 | lib/telegram/reply/forward_message.rb |