Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
linquebot_cr
0.0.1
Linquebot
App
AppEvents
Message
Channel
Handler
Wrapper
TextMessage
Channel
Handler
Wrapper
AppInitializeError
BotUserNotFound
BrokenConfig
Config
BrokenYAMLFileError
Lib
Logger
Plugin
Rong
TelegramApi
ApiClient
ApiError
ApiResult
NonTelegramApiError
TelegramApiError
Types
Chat
Message
Update
User
Generated using Crystal 1.14.0
2024-11-26 08:34:43 UTC
class
Linquebot::
App::
Config
Linquebot::App::Config
Reference
Object
Included Modules
YAML::Serializable
Defined in:
lib/config.cr
Constant Summary
CONFIG_FILE_PATH
=
"./config.yaml"
Constructors
.new
(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
.new
(token : String =
""
)
Class Method Summary
.create_from_stdin
.read_from_file
Instance Method Summary
#bot_token
: String
#pretty_print
#save!
Constructor Detail
def self.
new
(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
#
[
View source
]
def self.
new
(token : String =
""
)
#
[
View source
]
Class Method Detail
def self.
create_from_stdin
#
[
View source
]
def self.
read_from_file
#
[
View source
]
Instance Method Detail
def
bot_token
: String
#
[
View source
]
def
pretty_print
#
[
View source
]
def
save!
#
[
View source
]