Module: Telegram::NonStandard

Includes:
CoreApi
Included in:
AllApis, Client
Defined in:
lib/api/nstandard.rb

Instance Method Summary collapse

Methods included from CoreApi

#http_get, #http_post

Instance Method Details

use ‘markdow’ for parse_mode



25
26
27
# File 'lib/api/nstandard.rb', line 25

def create_text_link(message, url)
  "[#{message}](#{url})"
end

use ‘markdown’



20
21
22
# File 'lib/api/nstandard.rb', line 20

def create_user_link(name, user_id)
  "[#{name}](tg://user?id=#{id})"
end

#download_file(file_d, dir = Dir.pwd) ⇒ Object



10
11
12
# File 'lib/api/nstandard.rb', line 10

def download_file(file_d, dir = Dir.pwd)
  d = Dir.new(dir)
end

#download_file_from(uri, dir = Dir.pwd) ⇒ Object



14
15
16
17
# File 'lib/api/nstandard.rb', line 14

def download_file_from(uri, dir = Dir.pwd)
  uri = URI.parse(uri)
  
end