An intelligent robot for people to search on Telegram.
- build up a robot for content search
- collect info of channels and groups(AI and blockchain related)
- insert data into ElasticSearch
- import adsgram into the robot
- fix bugs and enhance the robot
- Work Content: Improve the accuracy and efficiency of search method with ElasticSearch.
- Deadline: 2024-07-20
- Work Content: Add buttons on telebot UI for facilitating the users' operations. Enhance task classifier in the backend.
- Deadline: 2024-07-27
- Work Content: Collect the infomation of channels and groups and insert the data into ElasticSearch. Create scripts or API interface to facilitate the insertion.
- Deadline: 2024-08-03
- Work Content: Import adsgram into telebot and connect telebot with ton chain.
- Deadline: 2024-08-6
- Work Content: Purchase domain and combine it with IP. Deploy the backend of telebot on Linux.
- Deadline: 2024-08-10
PUT /telegroups
{
"mappings": {
"properties": {
"id" : {
"type" : "integer",
"index": false
},
"name": {
"type": "text",
"analyzer": "ik_smart"
},
"link": {
"type": "keyword",
"index": false
},
"member_count": {
"type": "integer",
"index": false
},
"tags": {
"type": "keyword"
},
"description": {
"type": "text",
"analyzer": "ik_smart"
}
}
}
}
PUT /telechannels
{
"mappings": {
"properties": {
"id" : {
"type" : "integer",
"index": false
},
"name": {
"type": "text",
"analyzer": "ik_smart"
},
"link": {
"type": "keyword",
"index": false
},
"subscriber_count": {
"type": "integer",
"index": false
},
"tags": {
"type": "keyword"
},
"description": {
"type": "text",
"analyzer": "ik_smart"
}
}
}
}
- use API interface to get group ID, the returned message looks like this:
{
"ok": true,
"result": [{
"update_id": 212274839,
"message": {
"message_id": 4,
"from": {
"id": <message sender ID>,
"is_bot": false,
"first_name": "Kim",
"last_name": "Joohn",
"language_code": "zh-hans"
},
"chat": {
"id": <group_id>,
"title": "game fans",
"type": "supergroup"
},
"date": 1720090140,
"text": "/haha @<robot name>",
"entities": [{
"offset": 0,
"length": 5,
"type": "bot_command"
}, {
"offset": 6,
"length": 16,
"type": "mention"
}]
}
}]
}
- we can setup webhook to accept messages received by Telebots API: https://api.telegram.org/bot{my_bot_token}/setWebhook?url={url_to_send_updates_to}
- start docker container
docker build -t telesearchbot:v0.0.1 . docker run --name telebot_test0 -p 8888:8888 -d telesearchbot:v0.0.1
- got an error when create telegram application solution: tdlib/telegram-bot-api#273
- TON: https://github.com/ton-blockchain/ton
- TON documents: https://docs.ton.org/
- Telegram bots: https://core.telegram.org/bots
- Method of creating bots: https://www.kyzy.cc/350.html
- Sending messages to bots: https://blog.csdn.net/tz_zs/article/details/127110582
- Keeping critical info: https://www.bilibili.com/video/BV1Vj42197kj/?spm_id_from=333.999.0.0&vd_source=c2c36667f866bcdc49a4a305213efb64
- Telethon: https://github.com/LonamiWebs/Telethon
- Webhook: https://cloud.tencent.com/developer/ask/sof/104354741
- Elastic Search: https://www.elastic.co/cn/what-is/vector-search
- AdsGram: https://adsgram.ai/