Sha256: 4ddbee71b2fbdc77cffecd792f9f0f7db59917629a38aab858f01b6d77e31232

Contents?: true

Size: 228 Bytes

Versions: 1

Compression:

Stored size: 228 Bytes

Contents

# frozen_string_literal: true

module TeBot
  module Cable
    def chat_id
      message.data&.chat_id
    end

    def reply(**payload)
      return if chat_id.nil?

      wire.send_message chat_id, **payload
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
te_bot-0.4.0 lib/te_bot/cable.rb