# Telegram bot for GemsOfWar

**URL:** <https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032>\
**Category:** Community Guides\
**Created:** [September 28, 2016, 9:22am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032 "2016-09-28T09:22:05Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [September 30, 2016, 10:44am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/22 "2016-09-30T10:44:52Z")

</div>

/stu [traits stone] - search troops which use traits stone for their upgrade

![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/2X/5/54ab03e68d4f4fc2c5de027a83e405a95b5f5a6b.png)

Traits and Upgrade Information is now displayed.

![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/2X/0/02e09d3323d850a2df3ef3a9d70c177187743a64.png)

---

<div class="post-metadata">

**Author:** ![Phaethon](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@Phaethon](https://community.gemsofwar.com/u/Phaethon)\
**Post date:** [September 30, 2016, 10:54am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/23 "2016-09-30T10:54:47Z")

</div>

Very nice work. If I could like a post twice, I would.

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [October 2, 2016, 11:49am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/24 "2016-10-02T11:49:00Z")

</div>

/stu \* - Dispaly All Arcane TraitsStone and where to get it

 ![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/2X/0/068302141e73c12ae3cb8c88a11b6b78e5b00ba1.jpg)

![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/2X/8/86924718951be5d5c93d925443a608140dc4ec50.jpg)

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [October 5, 2016, 2:58am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/25 "2016-10-05T02:58:08Z")

</div>

Added: @GemsOfWar\_bot searches class information, too.

![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/2X/9/94172acba3259d0abdbfd9326f65316a55139716.png)

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [October 10, 2016, 10:36am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/26 "2016-10-10T10:36:31Z")

</div>

Added: Search troops using traitstone with TraitsStone color.

/stu brye - (brown, yellow)

![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/2X/0/096eb5f8cd0c80ca51bcef31c77c0dcdb0740805.png)

/stu puye - (purple, yellow)

![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/2X/9/9048be04a7939577098b9f70aaa1228642fbd682.png)

---

<div class="post-metadata">

**Author:** ![Kharybdys](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/kharybdys/32/2023_2.png) [@Kharybdys](https://community.gemsofwar.com/u/Kharybdys)\
**Post date:** [October 10, 2016, 11:57am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/27 "2016-10-10T11:57:45Z")

</div>

Does /stu yepu give the same list as /stu puye?

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [October 10, 2016, 12:53pm UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/28 "2016-10-10T12:53:36Z")

</div>

Sure.

 ![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/2X/9/9d74260c1291a8746fbcfa26f4736ff45331e3b2.jpg)

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [October 11, 2016, 3:29am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/29 "2016-10-11T03:29:11Z")

</div>

/sd desc - search spell’s description

ex) /sd true damage - display all weapon/troop having ‘true damage’ skills

 ![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/2X/3/37a9fa071eb25eec46c6a9b2e0c2715a4879977d.png)

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [December 23, 2016, 2:01am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/30 "2016-12-23T02:01:12Z")

</div>

Add [Search Recommended Deck] command

/st troop  
 ![](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/b/b/bb339cbb5aa6cda7b38b3014c9f79be313edebac.png)

---

<div class="post-metadata">

**Author:** ![Chuca](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@Chuca](https://community.gemsofwar.com/u/Chuca)\
**Post date:** [September 23, 2017, 3:41pm UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/31 "2017-09-23T15:41:08Z")

</div>

Hi jmjeong.

There’s any repo to check so we can suggest/pull request any changes or translations for the bot?

Thanks and best regards.

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [September 23, 2017, 10:46pm UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/32 "2017-09-23T22:46:08Z")

</div>

The source code is not publicly released yet.  
You can suggest any idea in this forum.

---

<div class="post-metadata">

**Author:** ![Chuca](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@Chuca](https://community.gemsofwar.com/u/Chuca)\
**Post date:** [September 23, 2017, 11:00pm UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/33 "2017-09-23T23:00:36Z")

</div>

Thanks for your quick answer. My first idea was a spanish translation. There’s any fast way to do that? Or what kind of info do you need?

Best regards.

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [September 23, 2017, 11:28pm UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/34 "2017-09-23T23:28:52Z")

</div>

Bot data is retrieved from [http://gowdb.com](http://gowdb.com) Since [gowdb.com](http://gowdb.com) has Spanish translation, I can add multiple language support in future, but currently, I didn’t consider it.

---

<div class="post-metadata">

**Author:** ![Lyya](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/lyya/32/3650_2.png) [@Lyya](https://community.gemsofwar.com/u/Lyya)\
**Post date:** [September 24, 2017, 12:26am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/35 "2017-09-24T00:26:43Z")

</div>

Incidentally, if you are pulling from my site (which is totally fine by me), you might consider using the JSON endpoints instead of scraping the HTML. They won’t change as I futz with the page layouts.

[http://gowdb.com/api/troops](http://gowdb.com/api/troops)  
[http://gowdb.com/api/troops/6167](http://gowdb.com/api/troops/6167)  
[http://gowdb.com/api/troops/details](http://gowdb.com/api/troops/details)  
[http://gowdb.com/api/troops/6167/details](http://gowdb.com/api/troops/6167/details)  
[http://gowdb.com/api/classes](http://gowdb.com/api/classes)  
[http://gowdb.com/api/classes/11135/details](http://gowdb.com/api/classes/11135/details)  
[http://gowdb.com/api/spells](http://gowdb.com/api/spells)  
[http://gowdb.com/api/spells/7010/details](http://gowdb.com/api/spells/7010/details)  
[http://gowdb.com/api/traits](http://gowdb.com/api/traits)  
[http://gowdb.com/api/traits/big/details](http://gowdb.com/api/traits/big/details)  
[http://gowdb.com/api/weapons](http://gowdb.com/api/weapons)  
[http://gowdb.com/api/weapons/1135/details](http://gowdb.com/api/weapons/1135/details)  
[http://gowdb.com/api/traitstones](http://gowdb.com/api/traitstones)  
[http://gowdb.com/api/traitstones/35/details](http://gowdb.com/api/traitstones/35/details)  
[http://gowdb.com/api/searches/all?term=Dark](http://gowdb.com/api/searches/all?term=Dark)

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [September 24, 2017, 1:02am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/36 "2017-09-24T01:02:02Z")

</div>

Lyya, I’m sorry I could not inform you in advance.  
Thank you the API. It will be very helpful.

Telegram bot retrieved the data from [Gems of War Database](http://gowdb.com/troopquery), [http://gowdb.com/weaponquery](http://gowdb.com/weaponquery), and [Gems of War Database](http://gowdb.com/classquery) twice a day automatically.

Lyya, one suggestion for API.

- Query for the changed data from the specific time.

Currently, I compare the retrieved data and the local saved data and fetch the updated data to reduce server overhead.

---

<div class="post-metadata">

**Author:** ![Lyya](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/lyya/32/3650_2.png) [@Lyya](https://community.gemsofwar.com/u/Lyya)\
**Post date:** [September 24, 2017, 2:02am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/37 "2017-09-24T02:02:31Z")

</div>

Yeah, I can add that.

---

<div class="post-metadata">

**Author:** ![Lyya](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/lyya/32/3650_2.png) [@Lyya](https://community.gemsofwar.com/u/Lyya)\
**Post date:** [September 24, 2017, 4:40am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/38 "2017-09-24T04:40:36Z")

</div>

Okay, added. All responses now have an ISO-8601 timestamp in a “modTime” property on the root of the JSON payload, which corresponds to the last time the database contents have changed. Let me know if there’s anything else you’d need.

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [September 24, 2017, 4:46am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/39 "2017-09-24T04:46:38Z")

</div>

What’s the API endpoint? Could you give me the example?

---

<div class="post-metadata">

**Author:** ![Lyya](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/lyya/32/3650_2.png) [@Lyya](https://community.gemsofwar.com/u/Lyya)\
**Post date:** [September 24, 2017, 5:16am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/40 "2017-09-24T05:16:22Z")

</div>

Any of them will show it. I don’t have a specific endpoint just for mod time; for the moment you can do:

[http://gowdb.com/api/traitstones/1](http://gowdb.com/api/traitstones/1)

---

<div class="post-metadata">

**Author:** ![jmjeong](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jmjeong/32/11255_2.png) [@jmjeong](https://community.gemsofwar.com/u/jmjeong)\
**Post date:** [September 24, 2017, 7:43am UTC](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032/41 "2017-09-24T07:43:10Z")

</div>

`modTime` field is good.

But what I need is what info. is changed from the last fetch time. Telegram-bot caches the data for speed and for reducing [gowdb.com](http://gowdb.com) load.

What I need is the information about the newly added troop or weapon, mana change, desc change, and the new kingdom etc since the last fetch time. Without this api, I have to retrieve all data and compare the changes with the cached data (Actually I do it in the current version)

[Previous page](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032.md?page=1)

[Next page](https://community.gemsofwar.com/t/telegram-bot-for-gemsofwar/13032.md?page=3)
