mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-08-15 05:36:22 +00:00
New CommunitiesBot demonstrating the 36.0.0 communities API: - onCommunityChatAdded / onCommunityChatRemoved triggers for the community_chat_added / community_chat_removed service events - reading the Community (id/name) from CommunityChatAdded - ExtendedChat.community (ChatFullInfo.community) via getChat - waitCommunityChatAdded expectation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
411 B
Groovy
22 lines
411 B
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'application'
|
|
|
|
mainClassName="CommunitiesBotKt"
|
|
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
implementation "dev.inmo:tgbotapi:$telegram_bot_api_version"
|
|
}
|