| Package | Description |
|---|---|
| org.telegram.abilitybots.api.bot | |
| org.telegram.abilitybots.api.db | |
| org.telegram.abilitybots.api.util |
| Modifier and Type | Field and Description |
|---|---|
protected DBContext |
AbilityBot.db |
| Constructor and Description |
|---|
AbilityBot(String botToken,
String botUsername,
DBContext db) |
AbilityBot(String botToken,
String botUsername,
DBContext db,
DefaultBotOptions botOptions) |
| Modifier and Type | Class and Description |
|---|---|
class |
MapDBContext
An implementation of
DBContext that relies on a DB. |
| Modifier and Type | Method and Description |
|---|---|
static DBContext |
MapDBContext.offlineInstance(String name)
This DB returned by this method gets deleted on JVM shutdown.
|
static DBContext |
MapDBContext.onlineInstance(String name)
This DB returned by this method does not trigger deletion on JVM shutdown.
|
| Modifier and Type | Method and Description |
|---|---|
static Consumer<MessageContext> |
AbilityUtils.commitTo(DBContext db)
Commits to DB.
|
Copyright © 2017. All rights reserved.