Class: Telegram::Client

Inherits:
Object
  • Object
show all
Includes:
DeleteApis, GetApis, NonStandard, OtherApis, SendApis, SetApis
Defined in:
lib/teleruby.rb

Overview

Telegram CLient(bot)

Instance Method Summary collapse

Methods included from SetApis

#set_chat_description, #set_chat_permissions, #set_chat_photo, #set_chat_sticker_set, #set_chat_title, #set_cutom_title, #set_my_command, #set_sticker_position_in_the_set, #set_sticker_set_thumb, #set_webhook

Methods included from CoreApi

#http_get, #http_post

Methods included from SendApis

#send_animation, #send_audio, #send_chat_action, #send_contact, #send_dice, #send_document, #send_location, #send_media_group, #send_message, #send_photo, #send_poll, #send_sticker, #send_venue, #send_video, #send_video_note, #send_voice

Methods included from OtherApis

#add_sticker_to_set, #answer_callback_query, #answer_inline_query, #create_new_stricker_set, #delete_webhook, #edit_message_caption, #edit_message_live_location, #edit_message_media, #edit_message_reply_markup, #edit_message_text, #export_chat_link, #forward_message, #kick_chat_member, #pin_chat_message, #promote_chat_member, #restrict_chat_member, #stop_poll, #unban_chat_member, #upload_sticker_file

Methods included from NonStandard

#create_text_link, #create_user_link, #download_file, #download_file_from

Methods included from GetApis

#get_chat, #get_chat_admins, #get_chat_member, #get_chat_members_count, #get_file, #get_me, #get_my_commands, #get_profile_photos, #get_sticker_set_name, #get_updates

Methods included from DeleteApis

#delete_chat_photo, #delete_chat_sticker_set, #delete_message, #delete_sticker_from_set

Constructor Details

#initialize(token:) ⇒ Client

Returns a new instance of Client.



15
16
17
18
# File 'lib/teleruby.rb', line 15

def initialize(token: )
  @token = token
  @last_update = 0
end