class
Telecr::Core::Bot
- Telecr::Core::Bot
- Reference
- Object
Defined in:
core/bot.crConstructors
Instance Method Summary
- #client : Telecr::Api::Client
-
#command(name : String, &block : Context -> )
Preserving existing Command Logic
- #composer : Composer
-
#get_user_profile_audios(user_id : Int64, offset : Int32 | Nil = nil, limit : Int32 | Nil = nil)
New for API 9.6: User Profile Audios
- #hears(pattern : Regex | String, &block : Context -> )
-
#managed_bot(&block : Context -> )
New for API 9.6: Managed Bot Handler
- #on(type : Symbol, **filters, &block : Context -> )
-
#process(data : String)
Process raw data (JSON String or Hash-like)
- #process(data : Hash | JSON::Any)
- #running : Bool
- #set_webhook(url : String | Nil = nil, secret_token : String | Nil = nil)
-
#shutdown
Standard bot methods...
-
#start_polling
Start bot in polling mode
-
#start_webhook(path : String = "/webhook", port : Int32 | Nil = nil)
Start bot in webhook mode
- #stop_webhook
- #webhook_path : String | Nil
- #webhook_server : Webhook::Server | Nil
Constructor Detail
Instance Method Detail
def get_user_profile_audios(user_id : Int64, offset : Int32 | Nil = nil, limit : Int32 | Nil = nil)
#
New for API 9.6: User Profile Audios
Start bot in webhook mode