<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Soham</title>
    <description>The latest articles on DEV Community by Soham (@soham).</description>
    <link>https://dev.to/soham</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1001905%2F060d9101-17a8-4483-86de-4bb3b6d19c90.png</url>
      <title>DEV Community: Soham</title>
      <link>https://dev.to/soham</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/soham"/>
    <language>en</language>
    <item>
      <title>How to create a TelegramBot using ZettaBlock GraphQL API</title>
      <dc:creator>Soham</dc:creator>
      <pubDate>Wed, 04 Jan 2023 19:22:12 +0000</pubDate>
      <link>https://dev.to/soham/how-to-create-a-telegrambot-using-zettablock-graphql-api-lgl</link>
      <guid>https://dev.to/soham/how-to-create-a-telegrambot-using-zettablock-graphql-api-lgl</guid>
      <description>&lt;p&gt;To create a bot using the ZettaBlock GraphQL API, you'll need to follow a few steps. First, make sure you have an API key and access to the ZettaBlock GraphQL endpoint where you will get API ID and API Key which you need to input in the .env file. Then, you'll need to create a bot on Telegram and then choose a programming language and a framework to build your bot with. Some popular options for building bots include Node.js, Python.&lt;/p&gt;

&lt;p&gt;Follow the steps shown below to make an awesome Telegram Bot:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make a Data Query&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fondyv6hhq68gphimj8tt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fondyv6hhq68gphimj8tt.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create an SQL Query to fetch Solana tokens on the Mainnet-Beta(Here we are building a Solana Token Tracker Bot)
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT
  "name",
  "symbol",
  "decimals",
  "token_authority",
  "supply",
  "type",
  "address"
FROM
  solana_mainnet.token_metadata
LIMIT
  20 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Create API to Query the data.
Indexed the data by selecting the name, symbol and supply field&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb0tceqxlp0ayusfl9dbs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb0tceqxlp0ayusfl9dbs.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Get your API Key, API ID, Bot token and Hop on to Github&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://github.com/TheDARKFURY/EarnWeb3DAO---ZettaBlockAPI" rel="noopener noreferrer"&gt;Github - TelegramBot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Run following command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm i&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Add API ID, API Key and Bot Token in .env.example and rename the file to .env&lt;/p&gt;

&lt;p&gt;Now, run the following command and you're good to test your bot on Telegram&lt;/p&gt;

&lt;p&gt;&lt;code&gt;node index.js&lt;/code&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
